/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/cpus" || return 1 46 echo > "$CPUSET/father/child/cpus" || return 1 48 cpuset_log "father cpus $(cat "$CPUSET/father/cpus")" 49 cpuset_log "child cpus $(cat "$CPUSET/father/child/cpus")" 51 test -z "$(cat "$CPUSET/father/cpus")" || return 1 52 test -z "$(cat "$CPUSET/father/child/cpus")" || return 1 57 echo > "$CPUSET/father/cpus" || return [all...] |
/external/lisa/libs/utils/analysis/ |
cpus_analysis.py | 18 """ CPUs Analysis Module """ 31 Support for CPUs Signals Analysis 57 cpus = range(self._platform['cpus_count']) 59 [len(sched_df[sched_df['__cpu'] == cpu]) for cpu in cpus], 60 index=cpus, 71 def plotCPU(self, cpus=None): 75 :param cpus: list of CPUs to be plotted 76 :type cpus: list(int) 83 # Filter on specified cpus [all...] |
/external/linux-kselftest/tools/testing/selftests/cpufreq/ |
cpu.sh | 16 cpus=$(ls $CPUROOT | grep "cpu[0-9].*") 17 for cpu in $cpus; do 24 cpus=$(ls $CPUROOT | grep "cpu[1-9].*") 25 for cpu in $cpus; do 51 # Reboot CPUs 66 # Prints warning for all CPUs with missing cpufreq directory 72 # 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) {
|
/external/linux-kselftest/tools/testing/selftests/rcutorture/formal/srcu-cbmc/tests/ |
test_script.sh | 10 # NR_CPUS: Number of cpus to run tests with. Default specified by the test 19 # min_cpus_fail: Minimum number of CPUs (NR_CPUS) for verification to fail. 22 # default_cpus: Quantity of CPUs to use for the test, if not specified on the 70 cpus=${NR_CPUS:-${default_cpus}} 72 # Check if there are two few cpus to make the test fail. 73 if test $cpus -lt ${min_cpus_fail:-0}; then 77 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) { 126 // 2. Make master thread and slave thread running on different cpus: 127 // master thread uses first available cpu, and slave thread uses other cpus. 131 if (CPU_ISSET(i, &cpus)) { [all...] |
/device/linaro/bootloader/arm-trusted-firmware/bl1/ |
bl1.mk | 35 lib/cpus/aarch64/cpu_helpers.S
|
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/ |
smp.h | 34 void ipi_selected(u_int64_t cpus, int ipi);
|
/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/fio/os/ |
os-solaris.h | 110 processorid_t *cpus; local 113 cpus = malloc(sizeof(*cpus) * max_cpus); 115 if (pset_info(*mask, NULL, &num_cpus, cpus) < 0) { 116 free(cpus); 122 if (cpus[i] == cpu) { 128 free(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="cpus" 106 while read cpus result 108 base_op_test "$CPUSET/1/cpus" "$cpus" "$result" 124 # while read cpus result 127 base_op_test "$CPUSET/1/cpus" "0,1-$((nr_cpus-2)),$((nr_cpus-1))" "0-$((nr_cpus-1))" 128 base_op_test "$CPUSET/1/cpus" "0,1-$((nr_cpus-2))," "0-$((nr_cpus-2))" 132 base_op_test "$CPUSET/1/cpus" "0-" "WRITE_ERROR" 134 base_op_test "$CPUSET/1/cpus" "0-" "0" 195 # 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/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/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...] |
/prebuilts/go/darwin-x86/test/bench/garbage/ |
stats.go | 18 cpus := "" 20 cpus = fmt.Sprintf("-%d", nprocs) 22 fmt.Printf("garbage.%sMem%s Alloc=%d/%d Heap=%d NextGC=%d Mallocs=%d\n", name, cpus, st.Alloc, st.TotalAlloc, st.Sys, st.NextGC, st.Mallocs) 23 fmt.Printf("garbage.%s%s %d %d ns/op\n", name, cpus, n, t.Nanoseconds()/int64(n)) 24 fmt.Printf("garbage.%sLastPause%s 1 %d ns/op\n", name, cpus, st.PauseNs[(st.NumGC-1)%uint32(len(st.PauseNs))]) 25 fmt.Printf("garbage.%sPause%s %d %d ns/op\n", name, cpus, st.NumGC, int64(st.PauseTotalNs)/int64(st.NumGC)) 31 fmt.Printf("garbage.%sPause5%s: %d %d %d %d %d\n", name, cpus, t1, t2, t3, t4, t5)
|
/prebuilts/go/linux-x86/test/bench/garbage/ |
stats.go | 18 cpus := "" 20 cpus = fmt.Sprintf("-%d", nprocs) 22 fmt.Printf("garbage.%sMem%s Alloc=%d/%d Heap=%d NextGC=%d Mallocs=%d\n", name, cpus, st.Alloc, st.TotalAlloc, st.Sys, st.NextGC, st.Mallocs) 23 fmt.Printf("garbage.%s%s %d %d ns/op\n", name, cpus, n, t.Nanoseconds()/int64(n)) 24 fmt.Printf("garbage.%sLastPause%s 1 %d ns/op\n", name, cpus, st.PauseNs[(st.NumGC-1)%uint32(len(st.PauseNs))]) 25 fmt.Printf("garbage.%sPause%s %d %d ns/op\n", name, cpus, st.NumGC, int64(st.PauseTotalNs)/int64(st.NumGC)) 31 fmt.Printf("garbage.%sPause5%s: %d %d %d %d %d\n", name, cpus, t1, t2, t3, t4, t5)
|
/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);
|