/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/ |
D | cpuset_hierarchy_test.sh | 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 60 cpuset_log "father cpuset.cpus $(cat "$CPUSET/father/cpuset.cpus")" 61 cpuset_log "child cpuset.cpus $(cat "$CPUSET/father/child/cpuset.cpus")" 63 test -z "$(cat "$CPUSET/father/cpuset.cpus")" || return 1 64 test -z "$(cat "$CPUSET/father/child/cpuset.cpus")" || return 1 72 cpuset_log "father cpuset.cpus $(cat "$CPUSET/father/cpuset.cpus")" 73 cpuset_log "child cpuset.cpus $(cat "$CPUSET/father/child/cpuset.cpus")" [all …]
|
/external/arm-trusted-firmware/plat/arm/board/arm_fpga/ |
D | platform.mk | 45 FPGA_CPU_LIBS := lib/cpus/${ARCH}/aem_generic.S 51 FPGA_CPU_LIBS += lib/cpus/aarch64/cortex_a35.S \ 52 lib/cpus/aarch64/cortex_a53.S \ 53 lib/cpus/aarch64/cortex_a57.S \ 54 lib/cpus/aarch64/cortex_a72.S \ 55 lib/cpus/aarch64/cortex_a73.S 58 FPGA_CPU_LIBS += lib/cpus/aarch64/cortex_a76.S \ 59 lib/cpus/aarch64/cortex_a76ae.S \ 60 lib/cpus/aarch64/cortex_a77.S \ 61 lib/cpus/aarch64/cortex_a78.S \ [all …]
|
/external/rust/crates/num_cpus/src/ |
D | lib.rs | 234 let mut cpus: libc::c_uint = 0; in get_num_cpus() localVariable 235 let mut cpus_size = std::mem::size_of_val(&cpus); in get_num_cpus() 238 cpus = libc::sysconf(libc::_SC_NPROCESSORS_ONLN) as libc::c_uint; in get_num_cpus() 240 if cpus < 1 { in get_num_cpus() 245 &mut cpus as *mut _ as *mut _, in get_num_cpus() 250 if cpus < 1 { in get_num_cpus() 251 cpus = 1; in get_num_cpus() 254 cpus as usize in get_num_cpus() 261 let mut cpus: libc::c_uint = 0; in get_num_cpus() localVariable 262 let mut cpus_size = std::mem::size_of_val(&cpus); in get_num_cpus() [all …]
|
/external/autotest/client/tests/tsc/src/ |
D | checktsc.c | 72 int parse_cpu_set(const char *s, cpu_set_t *cpus) in parse_cpu_set() argument 74 CPU_ZERO(cpus); in parse_cpu_set() 114 CPU_SET(cpu, cpus); in parse_cpu_set() 179 cpu_set_t cpus; in set_cpu_affinity() local 181 CPU_ZERO(&cpus); in set_cpu_affinity() 182 CPU_SET(cpu, &cpus); in set_cpu_affinity() 183 if (sched_setaffinity(0, sizeof cpus, &cpus) < 0) { in set_cpu_affinity() 275 check_tsc(cpu_set_t *cpus) in check_tsc() argument 289 if (!CPU_ISSET(cpu_a, cpus)) in check_tsc() 293 if (!CPU_ISSET(cpu_b, cpus) || cpu_a == cpu_b) in check_tsc() [all …]
|
/external/arm-trusted-firmware/plat/arm/board/fvp/ |
D | platform.mk | 107 FVP_CPU_LIBS := lib/cpus/${ARCH}/aem_generic.S 115 FVP_CPU_LIBS += lib/cpus/aarch64/cortex_a35.S \ 116 lib/cpus/aarch64/cortex_a53.S \ 117 lib/cpus/aarch64/cortex_a57.S \ 118 lib/cpus/aarch64/cortex_a72.S \ 119 lib/cpus/aarch64/cortex_a73.S 124 FVP_CPU_LIBS += lib/cpus/aarch64/cortex_a76.S \ 125 lib/cpus/aarch64/cortex_a76ae.S \ 126 lib/cpus/aarch64/cortex_a77.S \ 127 lib/cpus/aarch64/cortex_a78.S \ [all …]
|
/external/ltp/testcases/kernel/controllers/cpuset/ |
D | cpuset_regression_test.sh | 63 cpus=cpuset.cpus 66 cpus=cpus 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'"
|
/external/autotest/client/tests/monotonic_time/src/ |
D | threads.c | 21 cpu_set_t cpus; member 38 if (sched_setaffinity(0, sizeof thread->cpus, &thread->cpus) < 0) in run_thread() 52 int create_per_cpu_threads(cpu_set_t *cpus, thread_func_t func, void *arg) in create_per_cpu_threads() argument 59 if (!CPU_ISSET(cpu, cpus)) in create_per_cpu_threads() 67 CPU_ZERO(&thread->cpus); in create_per_cpu_threads() 68 CPU_SET(cpu, &thread->cpus); in create_per_cpu_threads() 98 CPU_ZERO(&thread->cpus); in create_threads()
|
D | cpuset.c | 16 int count_cpus(const cpu_set_t *cpus) in count_cpus() argument 22 if (CPU_ISSET(cpu, cpus)) in count_cpus() 32 int parse_cpu_set(const char *s, cpu_set_t *cpus) in parse_cpu_set() argument 34 CPU_ZERO(cpus); in parse_cpu_set() 73 CPU_SET(cpu, cpus); in parse_cpu_set() 110 int show_cpu_set(char *buf, size_t len, const cpu_set_t *cpus) in show_cpu_set() argument 119 if (CPU_ISSET(cpu, cpus)) { in show_cpu_set()
|
D | time_test.c | 231 int run_test(cpu_set_t *cpus, long duration, struct test_info *test) in run_test() argument 256 ncpus = count_cpus(cpus); in run_test() 257 nthreads = create_per_cpu_threads(cpus, test_loop, test); in run_test() 309 cpu_set_t cpus; in main() local 328 CPU_SET(c, &cpus); in main() 336 if (parse_cpu_set(optarg, &cpus) != 0) in main() 381 sched_setaffinity(0, sizeof cpus, &cpus); in main() 382 if (sched_getaffinity(0, sizeof cpus, &cpus) < 0) { in main() 387 return run_test(&cpus, duration, test); in main()
|
D | 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);
|
/external/perfetto/test/trace_processor/parsing/ |
D | cpu_info.textproto | 4 cpus { 16 cpus { 28 cpus { 40 cpus { 52 cpus { 64 cpus { 76 cpus { 89 cpus {
|
D | thread_time_in_state_unknown.textproto | 79 cpus { 83 cpus { 87 cpus { 91 cpus {
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
D | cpuinfo.c | 24 struct cpuinfo *cpus; variable 44 if (cpus != NULL) { in get_cpu_baseinfo() 45 free(cpus); in get_cpu_baseinfo() 46 cpus = NULL; in get_cpu_baseinfo() 50 cpus = malloc(sizeof(*cpus) * ncpus); in get_cpu_baseinfo() 51 if (cpus == NULL) in get_cpu_baseinfo() 53 memset(cpus, 0, sizeof(*cpus) * ncpus); in get_cpu_baseinfo() 74 cpus[ci].online = 1; in get_cpu_baseinfo() 104 if (cpus[i].online) in online_cpumask() 231 if (!cpus[ci].sched_domain) { in get_sched_domains() [all …]
|
D | libcpuset.c | 70 struct bitmask *cpus; member 620 if ((cp->cpus = bitmask_alloc(nbits)) == NULL) in cpuset_alloc() 629 if (cp && cp->cpus) in cpuset_alloc() 630 bitmask_free(cp->cpus); in cpuset_alloc() 642 if (cp->cpus) in cpuset_free() 643 bitmask_free(cp->cpus); in cpuset_free() 666 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus) in cpuset_setcpus() argument 668 if (cp->cpus) in cpuset_setcpus() 669 bitmask_free(cp->cpus); in cpuset_setcpus() 670 cp->cpus = bitmask_alloc(bitmask_nbits(cpus)); in cpuset_setcpus() [all …]
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/ |
D | cpuset_base_ops_testset.sh | 106 while read cpus result 108 base_op_test "$CPUSET/1/cpuset.cpus" "$cpus" "$result" 197 local cpus=$1 221 if [ "$cpus" != "NULL" ]; then 222 echo $cpus > "$CPUSET/sub_cpuset/cpuset.cpus" 236 …tst_resm TFAIL "Attaching Task Test failed!! cpus - \"$cpus\", mems - \"$mems\", Expect - \"$expec… 252 while read cpus mems expect 254 attach_task_test "$cpus" "$mems" "$expect" 265 for filename in cpus mems memory_pressure
|
/external/autotest/client/profilers/cpistat/ |
D | cpistat | 36 cpus = list(range(0, ncpus)) variable 38 cpus = options.cpulist.split(',') variable 39 cpus = [ int(c) for c in cpus ] variable 47 s = perfmon.SystemWideSession(cpus, events) 66 for c in cpus: 74 for c in cpus:
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/ |
D | cpuset_hotplug_test.sh | 116 local cpus="$2" 132 cpuset_set "$path" "$cpus" "$mems_all" "0" 2> $CPUSET_TMP/stderr 158 cpus="`cat $path/cpuset.cpus`" 181 check_result "$cpus" "$expect_cpus" 190 if [ "$cpus" = "" ]; then 191 cpus="EMPTY" 193 tst_resm TFAIL "general group's cpus isn't expected(Result: $cpus, Expect: $expect_cpus)." 246 while read hotplug cpus cpus_expect task_expect 248 base_test "$hotplug" "$cpus" "$cpus_expect" "$task_expect"
|
/external/linux-kselftest/tools/testing/selftests/rcutorture/bin/ |
D | jitter.sh | 38 cpus=`grep 1 /sys/devices/system/cpu/*/online | 43 cpus="0 $cpus" 46 cpumask=`awk -v cpus="$cpus" -v me=$me -v n=$n 'BEGIN {
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/ |
D | cpuset_sched_domains_check.c | 90 if (cpus[cpu].sched_domain != NULL) { in check_sched_domains() 94 cpus[cpu]. in check_sched_domains() 105 if (!bitmask_equal(domains[i], cpus[cpu].sched_domain)) { in check_sched_domains() 109 cpus[cpu].sched_domain); in check_sched_domains() 121 if (cpus[i].sched_domain) { in check_sched_domains()
|
/external/ltp/testcases/kernel/hotplug/cpu_hotplug/tools/ |
D | 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/cpufreq/ |
D | 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
|
/external/crosvm/sys_util/src/ |
D | sched.rs | 19 fn from_iter<I: IntoIterator<Item = usize>>(cpus: I) -> Self { in from_iter() 24 for cpu in cpus { in from_iter() 43 pub fn set_cpu_affinity<I: IntoIterator<Item = usize>>(cpus: I) -> Result<()> { in set_cpu_affinity() 44 let CpuSet(cpuset) = cpus in set_cpu_affinity()
|
/external/bcc/src/cc/ |
D | common.cc | 26 std::vector<int> cpus; in read_cpu_range() local 32 cpus.push_back(std::stoi(cpu_range)); in read_cpu_range() 38 cpus.push_back(i); in read_cpu_range() 41 return cpus; in read_cpu_range()
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | reuseport_bpf_cpu.c | 233 int *rcv_fd, cpus; in main() local 235 cpus = sysconf(_SC_NPROCESSORS_ONLN); in main() 236 if (cpus <= 0) in main() 239 rcv_fd = calloc(cpus, sizeof(int)); in main() 244 test(rcv_fd, cpus, AF_INET, SOCK_DGRAM); in main() 247 test(rcv_fd, cpus, AF_INET6, SOCK_DGRAM); in main() 250 test(rcv_fd, cpus, AF_INET, SOCK_STREAM); in main() 253 test(rcv_fd, cpus, AF_INET6, SOCK_STREAM); in main()
|
/external/perfetto/ui/src/tracks/process_scheduling/ |
D | controller.ts | 42 const cpus = await this.engine.getCpus(); constant 45 assertTrue(cpus.length > 0); 46 this.maxCpu = Math.max(...cpus) + 1; 103 cpus: new Uint32Array(numRows), 123 slices.cpus[row] = +cols[3].longValues![row];
|