/external/libcxx/utils/google-benchmark/src/ |
D | sysinfo.cc | 154 int num_cpus = 0; in InitializeSystemInfo() local 198 num_cpus++; // count up every time we see an "processor :" entry in InitializeSystemInfo() 220 if (num_cpus == 0) { in InitializeSystemInfo() 223 if ((max_cpu_id + 1) != num_cpus) { in InitializeSystemInfo() 228 cpuinfo_num_cpus = num_cpus; in InitializeSystemInfo() 283 int32_t num_cpus = 0; in InitializeSystemInfo() 284 size_t size = sizeof(num_cpus); in InitializeSystemInfo() 285 if (::sysctlbyname("hw.ncpu", &num_cpus, &size, nullptr, 0) == 0 && in InitializeSystemInfo() 286 (size == sizeof(num_cpus))) { in InitializeSystemInfo() 287 cpuinfo_num_cpus = num_cpus; in InitializeSystemInfo() [all …]
|
D | reporter.cc | 39 Out << "Run on (" << context.num_cpus << " X " << context.mhz_per_cpu in PrintBasicContext() 40 << " MHz CPU " << ((context.num_cpus > 1) ? "s" : "") << ")\n"; in PrintBasicContext()
|
/external/google-benchmark/src/ |
D | sysinfo.cc | 156 int num_cpus = 0; in InitializeSystemInfo() local 200 num_cpus++; // count up every time we see an "processor :" entry in InitializeSystemInfo() 222 if (num_cpus == 0) { in InitializeSystemInfo() 225 if ((max_cpu_id + 1) != num_cpus) { in InitializeSystemInfo() 230 cpuinfo_num_cpus = num_cpus; in InitializeSystemInfo() 285 int32_t num_cpus = 0; in InitializeSystemInfo() 286 size_t size = sizeof(num_cpus); in InitializeSystemInfo() 287 if (::sysctlbyname("hw.ncpu", &num_cpus, &size, nullptr, 0) == 0 && in InitializeSystemInfo() 288 (size == sizeof(num_cpus))) { in InitializeSystemInfo() 289 cpuinfo_num_cpus = num_cpus; in InitializeSystemInfo() [all …]
|
D | reporter.cc | 39 Out << "Run on (" << context.num_cpus << " X " << context.mhz_per_cpu in PrintBasicContext() 40 << " MHz CPU " << ((context.num_cpus > 1) ? "s" : "") << ")\n"; in PrintBasicContext()
|
/external/fio/os/ |
D | os-solaris.h | 109 unsigned int num_cpus; in fio_cpu_isset() local 115 if (pset_info(*mask, NULL, &num_cpus, cpus) < 0) { in fio_cpu_isset() 121 for (i = 0; i < num_cpus; i++) { in fio_cpu_isset() 134 unsigned int num_cpus; in fio_cpu_count() local 136 if (pset_info(*mask, NULL, &num_cpus, NULL) < 0) in fio_cpu_count() 139 return num_cpus; in fio_cpu_count()
|
/external/ltp/testcases/kernel/sched/tool/ |
D | trace_sched.c | 295 int num_cpus = UP; /* assume machine is an UP machine. */ in main() local 325 if ((num_cpus = atoi(optarg)) == 0) in main() 327 else if (num_cpus < 0) { in main() 330 num_cpus); in main() 331 num_cpus = UP; in main() 334 num_thrd = num_thrd * num_cpus; in main() 443 "Scheduling policy: %d\n", num_thrd, num_cpus, in main() 450 for (proc_ndx = 0; proc_ndx < num_cpus; proc_ndx++) { in main()
|
/external/netperf/src/ |
D | nettest_xti.h | 56 int num_cpus; /* how many CPUs were there */ member 101 int num_cpus; /* how many CPUs were there */ member 147 int num_cpus; /* how many CPUs were there */ member 185 int num_cpus; /* how many CPUs were there */ member 231 int num_cpus; /* how many CPUs were there */ member
|
D | nettest_bsd.h | 166 uint32_t num_cpus; /* number of CPUs in remote */ member 239 int num_cpus; /* how many CPUs had the remote? */ member 292 int num_cpus; /* how many CPUs had the remote? */ member 337 int num_cpus; /* how many CPUs had the remote? */ member 383 int num_cpus; /* how many CPUs had the remote? */ member 429 int num_cpus; /* how many CPUs had the remote? */ member 470 int num_cpus; /* how many CPUs had the remote? */ member 516 int num_cpus; /* how many CPUs had the remote? */ member 562 int num_cpus; /* how many CPUs had the remote? */ member
|
D | nettest_unix.h | 56 int num_cpus; member 100 int num_cpus; member 138 int num_cpus; member 185 int num_cpus; member
|
D | nettest_dlpi.h | 60 int num_cpus; /* how many CPUs were there? */ member 106 int num_cpus; /* how many CPUs were there? */ member 146 int num_cpus; member 196 int num_cpus; /* how many CPUs were there? */ member
|
D | nettest_sdp.h | 63 int num_cpus; /* how many CPUs had the remote? */ member 109 int num_cpus; /* how many CPUs had the remote? */ member 160 int num_cpus; /* how many CPUs had the remote? */ member
|
D | nettest_sctp.h | 58 int num_cpus; /* how many CPUs had the remote? */ member 104 int num_cpus; /* how many CPUs had the remote? */ member
|
/external/ltp/testcases/kernel/controllers/cpuctl/ |
D | cpuctl_def_task01.c | 88 int num_cpus, test_num, len; /* Total time = TIME_INTERVAL*num_cpus */ in main() local 106 num_cpus = 0; in main() 119 ((num_cpus = atoi(argv[4])) <= 0) || in main() 210 (delta_time * num_cpus); in main() 213 (TIME_INTERVAL * num_cpus); in main()
|
D | cpuctl_test04.c | 87 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */ in main() local 107 num_cpus = 0; in main() 133 num_cpus = atoi(num_cpus_p); in main() 222 (delta_cpu_time * 100) / (delta_time * num_cpus); in main() 225 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
|
D | cpuctl_def_task02.c | 86 int num_cpus; in main() local 108 num_cpus = 0; in main() 133 num_cpus = atoi(num_cpus_p); in main() 222 (delta_time * num_cpus); in main() 225 (TIME_INTERVAL * num_cpus); in main()
|
D | cpuctl_def_task04.c | 86 int num_cpus; in main() local 107 num_cpus = 0; in main() 132 num_cpus = atoi(num_cpus_p); in main() 227 (delta_time * num_cpus); in main() 230 (TIME_INTERVAL * num_cpus); in main()
|
D | cpuctl_test03.c | 86 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */ in main() local 106 num_cpus = 0; in main() 132 num_cpus = atoi(num_cpus_p); in main() 211 (delta_cpu_time * 100) / (delta_time * num_cpus); in main() 214 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
|
D | cpuctl_def_task03.c | 83 int test_num, task_num, len, num_cpus; in main() local 104 num_cpus = 0; in main() 129 num_cpus = atoi(num_cpus_p); in main() 217 (delta_time * num_cpus); in main() 220 (TIME_INTERVAL * num_cpus); in main()
|
D | cpuctl_test01.c | 86 int num_cpus; in main() local 107 num_cpus = 0; in main() 119 || ((num_cpus = atoi(argv[4])) <= 0) in main() 204 (delta_cpu_time * 100) / (delta_time * num_cpus); in main() 207 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
|
D | cpuctl_test02.c | 88 int num_cpus; /* Total time = TIME_INTERVAL *num_cpus in the machine */ in main() local 110 num_cpus = 0; in main() 136 num_cpus = atoi(num_cpus_p); in main() 215 (delta_cpu_time * 100) / (delta_time * num_cpus); in main() 218 (delta_cpu_time * 100) / (TIME_INTERVAL * num_cpus); in main()
|
D | run_cpuctl_latency_test.sh | 102 num_cpus=`tst_ncpus` 103 log2 $num_cpus;
|
/external/autotest/client/site_tests/platform_AesThroughput/ |
D | platform_AesThroughput.py | 20 num_cpus = bin_utils.count_cpus() 21 logging.debug('Running using all cpus: %d' % num_cpus) 22 results = self.openssl_speed('aes-256-cbc', '-multi %d' % num_cpus)
|
/external/autotest/client/site_tests/hardware_Interrupt/ |
D | hardware_Interrupt.py | 34 num_cpus = len(lines.pop(0).split()) 38 count = sum(map(int, fields[1:1 + num_cpus]))
|
/external/trappy/trappy/ |
D | cpu_power.py | 177 num_cpus = num_cpus_in_mask(cpumask) 180 load_series[idx] = load_series[idx] / (max_freq * num_cpus)
|
/external/google-breakpad/src/processor/ |
D | microdump.cc | 207 string num_cpus; in Microdump() local 215 os_tokens >> num_cpus; in Microdump() 221 system_info_->cpu_count = HexStrToL<uint8_t>(num_cpus); in Microdump()
|