Home
last modified time | relevance | path

Searched refs:num_cpus (Results 1 – 25 of 56) sorted by relevance

123

/external/libcxx/utils/google-benchmark/src/
Dsysinfo.cc154 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 …]
Dreporter.cc39 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/
Dsysinfo.cc156 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 …]
Dreporter.cc39 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/
Dos-solaris.h109 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/
Dtrace_sched.c295 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/
Dnettest_xti.h56 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
Dnettest_bsd.h166 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
Dnettest_unix.h56 int num_cpus; member
100 int num_cpus; member
138 int num_cpus; member
185 int num_cpus; member
Dnettest_dlpi.h60 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
Dnettest_sdp.h63 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
Dnettest_sctp.h58 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/
Dcpuctl_def_task01.c88 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()
Dcpuctl_test04.c87 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()
Dcpuctl_def_task02.c86 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()
Dcpuctl_def_task04.c86 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()
Dcpuctl_test03.c86 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()
Dcpuctl_def_task03.c83 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()
Dcpuctl_test01.c86 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()
Dcpuctl_test02.c88 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()
Drun_cpuctl_latency_test.sh102 num_cpus=`tst_ncpus`
103 log2 $num_cpus;
/external/autotest/client/site_tests/platform_AesThroughput/
Dplatform_AesThroughput.py20 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/
Dhardware_Interrupt.py34 num_cpus = len(lines.pop(0).split())
38 count = sum(map(int, fields[1:1 + num_cpus]))
/external/trappy/trappy/
Dcpu_power.py177 num_cpus = num_cpus_in_mask(cpumask)
180 load_series[idx] = load_series[idx] / (max_freq * num_cpus)
/external/google-breakpad/src/processor/
Dmicrodump.cc207 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()

123