HomeSort by relevance Sort by last modified time
    Searched refs:cpus (Results 1 - 25 of 201) sorted by null

1 2 3 4 5 6 7 8 9

  /external/autotest/client/tests/monotonic_time/src/
cpuset.h 13 int count_cpus(const cpu_set_t *cpus);
14 int parse_cpu_set(const char *s, cpu_set_t *cpus);
15 int show_cpu_set(char *buf, size_t len, const cpu_set_t *cpus);
threads.h 12 int create_per_cpu_threads(cpu_set_t *cpus, thread_func_t func, void *arg);
threads.c 21 cpu_set_t cpus; member in struct:thread
31 * Helper function to run a thread on a specific set of CPUs.
38 if (sched_setaffinity(0, sizeof thread->cpus, &thread->cpus) < 0)
49 * the CPUs specified by cpus.
52 int create_per_cpu_threads(cpu_set_t *cpus, thread_func_t func, void *arg)
59 if (!CPU_ISSET(cpu, cpus))
67 CPU_ZERO(&thread->cpus);
68 CPU_SET(cpu, &thread->cpus);
    [all...]
cpuset.c 14 * Return the number of cpus in a cpu_set
16 int count_cpus(const cpu_set_t *cpus)
22 if (CPU_ISSET(cpu, cpus))
32 int parse_cpu_set(const char *s, cpu_set_t *cpus)
34 CPU_ZERO(cpus);
73 CPU_SET(cpu, cpus);
110 int show_cpu_set(char *buf, size_t len, const cpu_set_t *cpus)
119 if (CPU_ISSET(cpu, cpus)) {
  /external/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/
cpuset_hierarchy_test.sh 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
57 echo > "$CPUSET/father/cpuset.cpus" || return
    [all...]
  /external/u-boot/arch/arm/dts/
armada-372x.dtsi 54 cpus {
  /external/linux-kselftest/tools/testing/selftests/cpufreq/
cpu.sh 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
67 # Prints warning for all CPUs with missing cpufreq directory
73 # Counts CPUs with cpufreq directories
  /external/ltp/testcases/kernel/controllers/cpuset/
cpuset_regression_test.sh 39 tst_brkm TCONF "We need 2 cpus at least to have test"
63 cpus=cpuset.cpus
66 cpus=cpus
131 # ${cpus} is empty at the begin, that maybe make the system *crash*.
132 echo 0-1 > ${root_cpuset_dir}/testdir/${cpus}
135 "${root_cpuset_dir}/testdir/${cpus}' failed"
138 local cpus_value=$(cat ${root_cpuset_dir}/testdir/${cpus})
140 tst_brkm TFAIL "${cpus} is '${cpus_value}', expected '0-1'
    [all...]
  /external/ltp/testcases/kernel/hotplug/cpu_hotplug/tools/
cpuhotplug_report_proc_interrupts 29 my @cpus;
36 if (! @cpus) {
37 @cpus = split /\s+/, $line;
42 foreach my $cpu (@cpus) {
  /device/linaro/bootloader/arm-trusted-firmware/plat/arm/board/juno/sp_min/
sp_min-juno.mk 8 BL32_SOURCES += lib/cpus/aarch32/cortex_a53.S \
9 lib/cpus/aarch32/cortex_a57.S \
10 lib/cpus/aarch32/cortex_a72.S \
  /external/linux-kselftest/tools/testing/selftests/rcutorture/formal/srcu-cbmc/tests/
test_script.sh 11 # NR_CPUS: Number of cpus to run tests with. Default specified by the test
20 # min_cpus_fail: Minimum number of CPUs (NR_CPUS) for verification to fail.
23 # default_cpus: Quantity of CPUs to use for the test, if not specified on the
71 cpus=${NR_CPUS:-${default_cpus}}
73 # Check if there are two few cpus to make the test fail.
74 if test $cpus -lt ${min_cpus_fail:-0}; then
78 cbmc_opts="-DNR_CPUS=${cpus} ${sync_srcu_mode_flags} ${test_cbmc_options} ${CBMC_FLAGS}"
  /external/autotest/client/profilers/cpistat/
cpistat 22 parser.add_option('-c', '--cpulist', help='CPUs to monitor',
31 cpus = range(0, ncpus) variable
33 cpus = options.cpulist.split(',') variable
34 cpus = [ int(c) for c in cpus ] variable
42 s = perfmon.SystemWideSession(cpus, events)
61 for c in cpus:
69 for c in cpus:
  /external/autotest/client/tests/tsc/src/
checktsc.c 25 { "cpus", required_argument, 0, 'c' },
43 printf("check TSC synchronization between CPUs\n");
44 printf(" -c,--cpus set of cpus to test (default: all)\n");
72 int parse_cpu_set(const char *s, cpu_set_t *cpus)
74 CPU_ZERO(cpus);
114 CPU_SET(cpu, cpus);
179 cpu_set_t cpus; local
181 CPU_ZERO(&cpus);
182 CPU_SET(cpu, &cpus);
320 cpu_set_t cpus; local
    [all...]
  /bionic/tests/
pty_test.cpp 84 cpu_set_t cpus; local
85 ASSERT_EQ(0, sched_getaffinity(0, sizeof(cpu_set_t), &cpus));
86 CPU_CLR(arg->main_cpu_id, &cpus);
87 ASSERT_EQ(0, sched_setaffinity(0, sizeof(cpu_set_t), &cpus));
109 cpu_set_t cpus; local
110 ASSERT_EQ(0, sched_getaffinity(0, sizeof(cpu_set_t), &cpus));
111 if (CPU_COUNT(&cpus) < 2) {
125 // 2. Make master thread and slave thread running on different cpus:
126 // master thread uses first available cpu, and slave thread uses other cpus.
130 if (CPU_ISSET(i, &cpus)) {
    [all...]
  /device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/
smp.h 34 void ipi_selected(u_int64_t cpus, int ipi);
  /external/bcc/src/cc/
common.cc 26 std::vector<int> cpus; local
32 cpus.push_back(std::stoi(cpu_range));
38 cpus.push_back(i);
41 return cpus;
  /external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
cpuinfo.h 12 extern struct cpuinfo *cpus;
cpuinfo.c 24 struct cpuinfo *cpus; variable in typeref:struct:cpuinfo
37 /* get the number of cpus including offline cpus */
44 if (cpus != NULL) {
45 free(cpus);
46 cpus = NULL;
49 /* allocate the memory space for cpus */
50 cpus = malloc(sizeof(*cpus) * ncpus);
51 if (cpus == NULL
    [all...]
  /external/ltp/testcases/kernel/tracing/ftrace_test/ftrace_stress/
ftrace_buffer_size_kb.sh 20 cpus=`tst_ncpus`
22 step=$(( $free_mem / 10 / $LOOP / $cpus ))
  /external/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/
cpuset_sched_domains_check.c 61 tst_resm(TFAIL, "get cpus nbits failed");
90 if (cpus[cpu].sched_domain != NULL) {
94 cpus[cpu].
105 if (!bitmask_equal(domains[i], cpus[cpu].sched_domain)) {
109 cpus[cpu].sched_domain);
121 if (cpus[i].sched_domain) {
  /external/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/
cpuset_base_ops_testset.sh 105 cfile_name="cpuset.cpus"
106 while read cpus result
108 base_op_test "$CPUSET/1/cpuset.cpus" "$cpus" "$result"
124 # while read cpus result
127 base_op_test "$CPUSET/1/cpuset.cpus" "0,1-$((nr_cpus-2)),$((nr_cpus-1))" "0-$((nr_cpus-1))"
128 base_op_test "$CPUSET/1/cpuset.cpus" "0,1-$((nr_cpus-2))," "0-$((nr_cpus-2))"
132 base_op_test "$CPUSET/1/cpuset.cpus" "0-" "WRITE_ERROR"
134 base_op_test "$CPUSET/1/cpuset.cpus" "0-" "0"
194 # attach_task_test <cpus> <mems> <expect
    [all...]
  /external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/
cpuset_hotplug_test.sh 89 root_cpus="`cat $CPUSET/cpuset.cpus`"
104 tst_resm TFAIL "root group's cpus isn't expected(Result: $root_cpus, Expect: $expect_cpus)."
112 # general_cpu_hotplug_test <cpuhotplug> <cpus> <expect_cpus> <expect_task_cpus>
116 local cpus="$2"
132 cpuset_set "$path" "$cpus" "$mems_all" "0" 2> $CPUSET_TMP/stderr
158 cpus="`cat $path/cpuset.cpus`"
167 tst_resm TFAIL "test task was still in general group, but its cpus is NULL"
181 check_result "$cpus" "$expect_cpus"
190 if [ "$cpus" = "" ]; the
    [all...]
  /build/soong/ui/tracer/
status.go 38 cpus []bool
44 for i, busy := range s.cpus {
47 s.cpus[i] = true
53 cpu = len(s.cpus)
54 s.cpus = append(s.cpus, true)
69 s.cpus[start.cpu] = false
  /device/linaro/bootloader/arm-trusted-firmware/plat/arm/board/juno/
platform.mk 35 BL1_SOURCES += lib/cpus/aarch64/cortex_a53.S \
36 lib/cpus/aarch64/cortex_a57.S \
37 lib/cpus/aarch64/cortex_a72.S \
49 BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \
50 lib/cpus/aarch64/cortex_a57.S \
51 lib/cpus/aarch64/cortex_a72.S \
  /external/linux-kselftest/tools/testing/selftests/rcutorture/bin/
jitter.sh 3 # Alternate sleeping and spinning on randomly selected CPUs. The purpose
51 cpus=`ls /sys/devices/system/cpu/*/online |
54 cpumask=`awk -v cpus="$cpus" -v me=$me -v n=$n 'BEGIN {
56 ncpus = split(cpus, ca);

Completed in 1193 milliseconds

1 2 3 4 5 6 7 8 9