Home
last modified time | relevance | path

Searched refs:nr_cpus (Results 1 – 12 of 12) sorted by relevance

/external/linux-tools-perf/src/tools/perf/util/
Dcpumap.c12 int nr_cpus; in cpu_map__default_new() local
14 nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in cpu_map__default_new()
15 if (nr_cpus < 0) in cpu_map__default_new()
18 cpus = malloc(sizeof(*cpus) + nr_cpus * sizeof(int)); in cpu_map__default_new()
21 for (i = 0; i < nr_cpus; ++i) in cpu_map__default_new()
24 cpus->nr = nr_cpus; in cpu_map__default_new()
30 static struct cpu_map *cpu_map__trim_new(int nr_cpus, int *tmp_cpus) in cpu_map__trim_new() argument
32 size_t payload_size = nr_cpus * sizeof(int); in cpu_map__trim_new()
36 cpus->nr = nr_cpus; in cpu_map__trim_new()
46 int nr_cpus = 0; in cpu_map__read() local
[all …]
Devlist.c254 int nr_cpus = cpu_map__nr(evlist->cpus); in perf_evlist__disable() local
257 for (cpu = 0; cpu < nr_cpus; cpu++) { in perf_evlist__disable()
272 int nr_cpus = cpu_map__nr(evlist->cpus); in perf_evlist__enable() local
275 for (cpu = 0; cpu < nr_cpus; cpu++) { in perf_evlist__enable()
326 int nr_cpus = cpu_map__nr(evlist->cpus); in perf_evlist__alloc_pollfd() local
328 int nfds = nr_cpus * nr_threads * evlist->nr_entries; in perf_evlist__alloc_pollfd()
609 int nr_cpus = cpu_map__nr(evlist->cpus); in perf_evlist__mmap_per_cpu() local
613 for (cpu = 0; cpu < nr_cpus; cpu++) { in perf_evlist__mmap_per_cpu()
640 for (cpu = 0; cpu < nr_cpus; cpu++) in perf_evlist__mmap_per_cpu()
/external/fio/
Didletime.c168 for (i = 0; i < ipc.nr_cpus; i++) { in calibration_stats()
173 ipc.cali_mean = sum/ipc.nr_cpus; in calibration_stats()
175 for (i = 0; i < ipc.nr_cpus; i++) { in calibration_stats()
180 ipc.cali_stddev = sqrt(var/(ipc.nr_cpus-1)); in calibration_stats()
191 ipc.nr_cpus = cpus_online(); in fio_idle_prof_init()
206 ipc.ipts = malloc(ipc.nr_cpus * sizeof(struct idle_prof_thread)); in fio_idle_prof_init()
212 ipc.buf = malloc(ipc.nr_cpus * page_size); in fio_idle_prof_init()
223 for (i = 0; i < ipc.nr_cpus; i++) { in fio_idle_prof_init()
271 for (i = 0; i < ipc.nr_cpus; i++) { in fio_idle_prof_init()
280 for (i = 0; i < ipc.nr_cpus; i++) { in fio_idle_prof_init()
[all …]
Dgettime.c559 unsigned int nr_cpus = cpus_online(); in fio_monotonic_clocktest() local
584 cthreads = malloc(nr_cpus * sizeof(struct clock_thread)); in fio_monotonic_clocktest()
585 tentries = nr_entries * nr_cpus; in fio_monotonic_clocktest()
589 log_info("cs: Testing %u CPUs\n", nr_cpus); in fio_monotonic_clocktest()
591 for (i = 0; i < nr_cpus; i++) { in fio_monotonic_clocktest()
604 nr_cpus = i; in fio_monotonic_clocktest()
609 for (i = 0; i < nr_cpus; i++) { in fio_monotonic_clocktest()
615 for (i = 0; i < nr_cpus; i++) { in fio_monotonic_clocktest()
621 for (i = 0; i < nr_cpus; i++) { in fio_monotonic_clocktest()
Didletime.h43 int nr_cpus; member
/external/mesa3d/src/gallium/auxiliary/util/
Du_cpu_detect.c231 util_cpu_caps.nr_cpus = system_info.dwNumberOfProcessors; in util_cpu_detect()
234 util_cpu_caps.nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in util_cpu_detect()
235 if (util_cpu_caps.nr_cpus == -1) in util_cpu_detect()
236 util_cpu_caps.nr_cpus = 1; in util_cpu_detect()
247 util_cpu_caps.nr_cpus = ncpu; in util_cpu_detect()
250 util_cpu_caps.nr_cpus = 1; in util_cpu_detect()
321 debug_printf("util_cpu_caps.nr_cpus = %u\n", util_cpu_caps.nr_cpus); in util_cpu_detect()
Du_cpu_detect.h49 unsigned nr_cpus; member
/external/fio/os/
Dos.h341 int nr_cpus, i; in CPU_COUNT() local
343 for (i = 0, nr_cpus = 0; i < max_cpus; i++) in CPU_COUNT()
345 nr_cpus++; in CPU_COUNT()
347 return nr_cpus; in CPU_COUNT()
/external/linux-tools-perf/src/tools/perf/bench/
Dnuma.c110 int nr_cpus; member
219 for (cpu = 0; cpu < g->p.nr_cpus; cpu++) in bind_to_cpu()
222 BUG_ON(target_cpu < 0 || target_cpu >= g->p.nr_cpus); in bind_to_cpu()
234 int cpus_per_node = g->p.nr_cpus/g->p.nr_nodes; in bind_to_node()
239 BUG_ON(cpus_per_node*g->p.nr_nodes != g->p.nr_cpus); in bind_to_node()
248 for (cpu = 0; cpu < g->p.nr_cpus; cpu++) in bind_to_node()
254 BUG_ON(cpu_stop > g->p.nr_cpus); in bind_to_node()
478 BUG_ON(step <= 0 || step >= g->p.nr_cpus); in parse_setup_cpu_list()
490 BUG_ON(bind_len <= 0 || bind_len > g->p.nr_cpus); in parse_setup_cpu_list()
503 BUG_ON(bind_cpu_0 < 0 || bind_cpu_0 >= g->p.nr_cpus); in parse_setup_cpu_list()
[all …]
/external/valgrind/include/vki/
Dvki-xen-sysctl.h129 vki_uint32_t nr_cpus; /* # CPUs currently online */ member
145 vki_uint32_t nr_cpus; /* # CPUs currently online */ member
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_screen.c487 screen->num_threads = util_cpu_caps.nr_cpus > 1 ? util_cpu_caps.nr_cpus : 0; in llvmpipe_create_screen()
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-xen.c1173 POST_XEN_SYSCTL_WRITE(physinfo_00000008, nr_cpus); in POST()
1187 POST_XEN_SYSCTL_WRITE(physinfo_0000000a, nr_cpus); in POST()