Home
last modified time | relevance | path

Searched +full:- +full:- +full:cpus (Results 1 – 25 of 1043) sorted by relevance

12345678910>>...42

/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/
Dcpuset_hierarchy_test.sh19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #
36 cpus_all="$(seq -s, 0 $((nr_cpus-1)))"
37 mems_all="$(seq -s, 0 $((nr_mems-1)))"
41 # test cpus
45 echo > "$CPUSET/father/cpuset.cpus" || return 1
46 echo > "$CPUSET/father/child/cpuset.cpus" || return 1
48 cpuset_log "father cpuset.cpus $(cat "$CPUSET/father/cpuset.cpus")"
49 cpuset_log "child cpuset.cpus $(cat "$CPUSET/father/child/cpuset.cpus")"
51 test -z "$(cat "$CPUSET/father/cpuset.cpus")" || return 1
52 test -z "$(cat "$CPUSET/father/child/cpuset.cpus")" || return 1
[all …]
/external/arm-trusted-firmware/plat/arm/board/arm_fpga/
Dplatform.mk4 # SPDX-License-Identifier: BSD-3-Clause
12 $(error "This is a BL31-only port; RESET_TO_BL31 must be enabled")
21 $(error "This is an AArch64-only port; CTX_INCLUDE_AARCH32_REGS must be disabled")
38 # Treating this as a memory-constrained port for now
48 FPGA_CPU_LIBS := lib/cpus/${ARCH}/aem_generic.S
54 FPGA_CPU_LIBS += lib/cpus/aarch64/cortex_a35.S \
55 lib/cpus/aarch64/cortex_a53.S \
56 lib/cpus/aarch64/cortex_a57.S \
57 lib/cpus/aarch64/cortex_a72.S \
58 lib/cpus/aarch64/cortex_a73.S
[all …]
/external/rust/crates/num_cpus/src/
Dlib.rs1 //! A crate with utilities to determine the number of CPUs available on the
4 //! Sometimes the CPU will exaggerate the number of CPUs it contains, because it can use
11 //! architecture of the processor, so the number of CPUs should be used as a rough guide
17 //! Fetch the number of logical CPUs.
20 //! let cpus = num_cpus::get();
23 //! See [`rayon::Threadpool`] for an example of where the number of CPUs could be
25 //! number 8, it could use the number of CPUs).
44 /// Returns the number of available CPUs of the current system.
54 /// let cpus = num_cpus::get();
55 /// if cpus > 1 {
[all …]
/external/arm-trusted-firmware/plat/arm/board/fvp/
Dplatform.mk2 # Copyright (c) 2013-2021, Arm Limited and Contributors. All rights reserved.
4 # SPDX-License-Identifier: BSD-3-Clause
15 # Default number of CPUs per cluster on FVP
25 FVP_DT_PREFIX := fvp-base-gicv3-psci
57 # The GIC model (GIC-600 or GIC-500) will be detected at runtime
85 FVP_DT_PREFIX := fvp-base-gicv2-psci
104 PLAT_INCLUDES := -Iplat/arm/board/fvp/include
109 FVP_CPU_LIBS := lib/cpus/${ARCH}/aem_generic.S
117 FVP_CPU_LIBS += lib/cpus/aarch64/cortex_a35.S \
118 lib/cpus/aarch64/cortex_a53.S \
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dcpuinfo.c24 struct cpuinfo *cpus; variable
37 /* get the number of cpus including offline cpus */ in get_cpu_baseinfo()
41 return -1; in get_cpu_baseinfo()
44 if (cpus != NULL) { in get_cpu_baseinfo()
45 free(cpus); in get_cpu_baseinfo()
46 cpus = NULL; in get_cpu_baseinfo()
49 /* allocate the memory space for cpus */ in get_cpu_baseinfo()
50 cpus = malloc(sizeof(*cpus) * ncpus); in get_cpu_baseinfo()
51 if (cpus == NULL) in get_cpu_baseinfo()
52 return -1; in get_cpu_baseinfo()
[all …]
Dcpuset.h4 * Copyright (c) 2004-2006 Silicon Graphics, Inc. All rights reserved.
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 * cpusets - basic routines (use cpuset relative numbering of CPUs)
28 * link with -lbitmask -lcpuset
30 * cpuset_pin(int relcpu) - Pin current task to one CPU in its cpuset.
31 * cpuset_size() - How many CPUs are in current tasks cpuset?
32 * cpuset_where() - Most recent CPU in current tasks cpuset that task ran on.
33 * cpuset_unpin() - Undo cpuset_pin(), let task run anywhere in its cpuset.
37 * cpusets - sets of CPUs and Memory Nodes - advanced routines (use system
38 * wide numbering of CPUs and Memory Nodes, except as noted)
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/
Dcpuset_base_ops_testset.sh19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #
36 cpus_all="$(seq -s, 0 $((nr_cpus-1)))"
37 mems_all="$(seq -s, 0 $((nr_mems-1)))"
52 mkdir -p "$(dirname $write_file)" || {
53 tst_brkm TFAIL "Failed to mkdir -p $(basename $write_file)"
64 test -z "$write_result" -a $ret = 0
71 test "$expect_string" = "$write_result" -a $ret = 0
76 if [ $ret -eq 0 ]; then
79 tst_resm TFAIL "$cfile_name: Test result - $write_result Expected string - \"$expect_string\""
87 if [ $? -ne 0 ]; then
[all …]
/external/arm-trusted-firmware/fdts/
Dfvp-defs-dynamiq.dtsi4 * SPDX-License-Identifier: BSD-3-Clause
27 * n - CPU number
28 * r - MPID
35 enable-method = "psci"; \
36 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; \
37 next-level-cache = <&L2_0>; \
61 #define CPUS \ macro
64 #define CPUS \ macro
75 #define CPUS \ macro
79 #define CPUS \ macro
[all …]
Dfvp-defs.dtsi4 * SPDX-License-Identifier: BSD-3-Clause
47 /* 32-bit address */
51 /* 64-bit address */
57 enable-method = "psci"; \
58 cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>; \
59 next-level-cache = <&L2_0>; \
77 * n - CPU number
85 /* 2 CPUs */
97 /* 3 CPUs */
112 /* 4 CPUs */
[all …]
/external/bcc/man/man8/
Dcpuunclaimed.81 .TH cpuunclaimed 8 "2016-12-21" "USER COMMANDS"
3 cpuunclaimed \- Sample CPU run queues and calculate unclaimed idle CPU. Uses Linux eBPF/bcc.
6 [\-T] [\-j] [\-J] [interval [count]]
9 CPUs, yet queued threads waiting their turn. It reports the amount of idle
10 (yet unclaimed by waiting threads) CPU as a system-wide percentage.
13 .IP -
14 An application has been bound to some, but not all, CPUs, and has runnable
15 threads that cannot migrate to other CPUs due to this configuration.
16 .IP -
17 CPU affinity: an optimization that leaves threads on CPUs where the CPU
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/
Dcpuset_hotplug_test.sh19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #
38 cpus_all="$(seq -s, 0 $((nr_cpus-1)))"
40 mems_all="$(seq -s, 0 $((nr_mems-1)))"
50 test -z "$result"
73 if [ $? -ne 0 ]; then
83 if [ $? -ne 0 ]; then
91 # See https://github.com/linux-test-project/ltp/issues/693
94 root_cpus="`cat $CPUSET/cpuset.cpus`"
100 if [ $ret -eq 0 ]
104 if [ $ret -ne 0 ]; then
[all …]
/external/ltp/lib/
Dtst_cpu.c17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
29 long ncpus = -1; in tst_ncpus()
33 tst_brkm(TBROK, NULL, "could not determine number of CPUs online"); in tst_ncpus()
40 long ncpus_conf = -1; in tst_ncpus_conf()
44 tst_brkm(TBROK, NULL, "could not determine number of CPUs configured"); in tst_ncpus_conf()
53 long ncpus_max = -1; in tst_ncpus_max()
57 * possible CPUs the OS or hardware can support, which can be larger in tst_ncpus_max()
62 * represents NR_CPUS-1, a compile time option which specifies in tst_ncpus_max()
63 * "maximum number of CPUs which this kernel will support". in tst_ncpus_max()
68 * configuration, so # of cpus allowed by config is +1 */ in tst_ncpus_max()
[all …]
/external/armnn/
DInstallationViaAptRepository.md4 * [Add the Ubuntu Launchpad PPA to your system](#add-the-ubuntu-launchpad-ppa-to-your-system)
5 * [Outline of available packages](#outline-of-available-packages)
9 * [Install desired combination of packages](#install-desired-combination-of-packages)
10 * [Installation of specific ABI versioned packages](#installation-of-specific-abi-versioned-package…
11 * [Uninstall packages](#uninstall-packages)
22 * Add the PPA to your sources using a command contained in software-properties-common package:
24 sudo apt install software-properties-common
25 sudo add-apt-repository ppa:armnn/ppa
43 libarmnn-cpuref-backend{ARMNN_MAJOR_VERSION}_{ARMNN_RELEASE_VERSION}-{PACKAGE_VERSION}_amd64.deb
44 libarmnntfliteparser{ARMNN_MAJOR_VERSION}_{ARMNN_RELEASE_VERSION}-{PACKAGE_VERSION}_amd64.deb
[all …]
/external/linux-kselftest/tools/testing/selftests/cpu-hotplug/
Dcpu-on-off-test.sh2 # SPDX-License-Identifier: GPL-2.0
5 # Kselftest framework requirement - SKIP code is 4.
17 taskset -p 01 $$
19 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'`
21 if [ ! -d "$SYSFS" ]; then
33 online_max=${online_cpus##*-}
41 present_max=${present_cpus##*-}
44 echo -e "\t Cpus in online state: $online_cpus"
50 offline_max=${offline_cpus##*-}
52 echo -e "\t Cpus in offline state: $offline_cpus"
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_exclusive_test/
Dcpuset_exclusive_test.sh19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #
35 # Case 1-9 test cpus
81 echo "0-1" > "$CPUSET/father/cpuset.cpus" || return 1
82 echo 0 > "$CPUSET/father/child/cpuset.cpus" || return 1
84 echo 1 > "$CPUSET/father/other/cpuset.cpus" || return 1
86 test 0 = $(cat "$CPUSET/father/child/cpuset.cpus") || return 1
87 test 1 = $(cat "$CPUSET/father/other/cpuset.cpus") || return 1
94 echo "0-1" > "$CPUSET/father/cpuset.cpus" || return 1
95 echo 0 > "$CPUSET/father/child/cpuset.cpus" || return 1
97 echo "0-1" > "$CPUSET/father/other/cpuset.cpus" 2> /dev/null && return 1
[all …]
/external/ltp/testcases/kernel/hotplug/cpu_hotplug/include/
Dcpuhotplug_hotplug.sh3 # cpuhotplug_hotplug.sh - Collection of functions for hotplugging
8 TIME=${TIME:-""}
16 echo `egrep [0-9]+: /proc/interrupts | cut -d ':' -f 1`
43 AFFINITY=`taskset -p ${1}`
57 `taskset -p ${MASK} ${PID} > /dev/null 2>&1`
72 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then
93 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then
107 # Prints the number of all available CPUs, regardless of whether they're
112 [ -d /sys/devices/system/cpu/cpu0 ] || return -1
114 | grep -c "cpu[0-9][0-9]*"`
[all …]
/external/cpuinfo/src/x86/
Disa.c58 * - Intel, AMD: ecx[bit 26] in basic info = XSAVE/XRSTOR instructions supported by a chip. in cpuinfo_x86_detect_isa()
59 * - Intel, AMD: ecx[bit 27] in basic info = XSAVE/XRSTOR instructions enabled by OS. in cpuinfo_x86_detect_isa()
73 * - Intel, AMD: XFEATURE_ENABLED_MASK[bit 1] for low 128 bits of ymm registers in cpuinfo_x86_detect_isa()
74 * - Intel, AMD: XFEATURE_ENABLED_MASK[bit 2] for high 128 bits of ymm registers in cpuinfo_x86_detect_isa()
83 * - Intel, AMD: XFEATURE_ENABLED_MASK[bit 1] for low 128 bits of zmm registers in cpuinfo_x86_detect_isa()
84 * - Intel, AMD: XFEATURE_ENABLED_MASK[bit 2] for bits 128-255 of zmm registers in cpuinfo_x86_detect_isa()
85 * - Intel: XFEATURE_ENABLED_MASK[bit 5] for 8 64-bit OpMask registers (k0-k7) in cpuinfo_x86_detect_isa()
86 * - Intel: XFEATURE_ENABLED_MASK[bit 6] for the high 256 bits of the zmm registers zmm0-zmm15 in cpuinfo_x86_detect_isa()
87 * - Intel: XFEATURE_ENABLED_MASK[bit 7] for the 512-bit zmm registers zmm16-zmm31 in cpuinfo_x86_detect_isa()
96 * - Intel: XFEATURE_ENABLED_MASK[bit 3] for BNDREGS in cpuinfo_x86_detect_isa()
[all …]
/external/arm-trusted-firmware/docs/perf/
Dpsci-performance-juno.rst5 operations in the Trusted Firmware-A Power State Coordination Interface (PSCI)
6 implementation, using the in-built Performance Measurement Framework (PMF) and
10 ------
12 We used the `Juno R1 platform`_ for these tests, which has 4 x Cortex-A53 and 2
13 x Cortex-A57 clusters running at the following frequencies:
15 +-----------------+--------------------+
18 | Cortex-A57 | 900 (nominal) |
19 +-----------------+--------------------+
20 | Cortex-A53 | 650 (underdrive) |
21 +-----------------+--------------------+
[all …]
/external/linux-kselftest/tools/testing/selftests/rcutorture/bin/
Djitter.sh2 # SPDX-License-Identifier: GPL-2.0+
4 # Alternate sleeping and spinning on randomly selected CPUs. The purpose
8 # Usage: jitter.sh me jittering-path duration [ sleepmax [ spinmax ] ]
10 # me: Random-number-generator seed salt.
12 # jittering-path: Path to file whose removal will stop this script.
23 sleepmax=${4-1000000}
24 spinmax=${5-1000}
31 for i in /sys/devices/system/cpu/cpu[0-9]*
33 if test -f $i/online
37 curcpu=`echo $i | sed -e 's/^[^0-9]*//'`
[all …]
Dkvm.sh2 # SPDX-License-Identifier: GPL-2.0+
5 # by the relevant CFLIST file, but can be overridden by the --configs
6 # command-line argument.
17 T=${TMPDIR-/tmp}/kvm.sh.$$
18 trap 'rm -rf $T' 0
24 LANG=en_US.UTF-8; export LANG
54 cpus=0
55 ds=`date +%Y.%m.%d-%H.%M.%S`
56 jitter="-1"
63 echo " --allcpus"
[all …]
/external/trace-cmd/tracecmd/
Dtrace-split.c1 // SPDX-License-Identifier: GPL-2.0
23 #include "trace-local.h"
54 static int bigendian = -1; in create_type_len()
88 page = cpu_data->page; in write_record()
92 ptr = page + cpu_data->index; in write_record()
94 diff = record->ts - cpu_data->ts; in write_record()
98 time = (unsigned int)(diff & ((1ULL << 27) - 1)); in write_record()
104 cpu_data->ts = record->ts; in write_record()
105 cpu_data->index += 8; in write_record()
109 if (record->size && (record->size <= 28 * 4)) in write_record()
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/
Dcpuset_regression_test.sh2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (c) Linux Test Project, 2016-2022
26 cpus="cpuset.cpus"
32 find ${root_cpuset_dir} -mindepth 1 -type d -exec echo 1 \; -quit
41 find . -mindepth 2 -name ${what} |
43 sort -n | cut -d " " -f 2-
52 find . -mindepth 2 -name ${what} |
54 sort -nr | cut -d " " -f 2-
67 local cpu_max=$((cpu_num - 1))
74 while read -r file; do
[all …]
/external/ltp/testcases/kernel/hotplug/cpu_hotplug/doc/
Dhotplug04.txt2 -----------
4 This test verifies that we can't offline ALL of the CPUs in the system.
5 We do this by onlining all the cpus, then offlining all the cpus and
11 Take a snapshot of what CPUs are on and off initially
13 Online all the CPUs
15 Offline al the CPUs
/external/linux-kselftest/tools/testing/selftests/cpufreq/
Dcpu.sh2 # SPDX-License-Identifier: GPL-2.0
17 cpus=$(ls $CPUROOT | grep "cpu[0-9].*")
18 for cpu in $cpus; do
25 cpus=$(ls $CPUROOT | grep "cpu[1-9].*")
26 for cpu in $cpus; do
52 # Reboot CPUs
64 printf "\n%s\n\n" "------------------------------------------------"
67 # Prints warning for all CPUs with missing cpufreq directory
73 # Counts CPUs with cpufreq directories
78 for cpu in `ls $CPUROOT | grep "cpu[0-9].*"`; do
[all …]
/external/ComputeLibrary/src/common/cpuinfo/
DCpuInfo.cpp2 * Copyright (c) 2021-2023 Arm Limited.
4 * SPDX-License-Identifier: MIT
66 /** Extract MIDR using CPUID information that are exposed to user-space
68 * @param[in] max_num_cpus Maximum number of possible CPUs
74 std::vector<uint32_t> cpus; in midr_from_cpuid() local
85cpus.emplace_back(support::cpp11::stoul(line, nullptr, support::cpp11::NumericBase::BASE_16)); in midr_from_cpuid()
89 return cpus; in midr_from_cpuid()
92 /** Extract MIDR by parsing the /proc/cpuinfo meta-data
94 * @param[in] max_num_cpus Maximum number of possible CPUs
100 std::vector<uint32_t> cpus; in midr_from_proc_cpuinfo() local
[all …]

12345678910>>...42