Home
last modified time | relevance | path

Searched refs:nrcpus (Results 1 – 10 of 10) sorted by relevance

/linux/tools/perf/tests/
H A Dperf-record.c19 int i, cpu = -1, nrcpus = 1024; in sched__get_first_possible_cpu() local
24 if (errno == EINVAL && nrcpus < (1024 << 8)) { in sched__get_first_possible_cpu()
25 nrcpus = nrcpus << 2; in sched__get_first_possible_cpu()
32 for (i = 0; i < nrcpus; i++) { in sched__get_first_possible_cpu()
/linux/tools/perf/bench/
H A Dfutex-hash.c136 int nrcpus; in bench_futex_hash() local
182 nrcpus = cpu__max_cpu().cpu; in bench_futex_hash()
183 cpuset = CPU_ALLOC(nrcpus); in bench_futex_hash()
185 size = CPU_ALLOC_SIZE(nrcpus); in bench_futex_hash()
H A Dfutex-wake.c106 int nrcpus = cpu__max_cpu().cpu; in block_threads() local
109 cpuset = CPU_ALLOC(nrcpus); in block_threads()
111 size = CPU_ALLOC_SIZE(nrcpus); in block_threads()
H A Dfutex-lock-pi.c128 int nrcpus = cpu__max_cpu().cpu; in create_threads() local
133 cpuset = CPU_ALLOC(nrcpus); in create_threads()
135 size = CPU_ALLOC_SIZE(nrcpus); in create_threads()
H A Depoll-ctl.c229 int nrcpus; in do_threads() local
235 nrcpus = cpu__max_cpu().cpu; in do_threads()
236 cpuset = CPU_ALLOC(nrcpus); in do_threads()
238 size = CPU_ALLOC_SIZE(nrcpus); in do_threads()
H A Dfutex-requeue.c131 int nrcpus = cpu__max_cpu().cpu; in block_threads() local
136 cpuset = CPU_ALLOC(nrcpus); in block_threads()
138 size = CPU_ALLOC_SIZE(nrcpus); in block_threads()
H A Depoll-wait.c298 int nrcpus; in do_threads() local
312 nrcpus = cpu__max_cpu().cpu; in do_threads()
313 cpuset = CPU_ALLOC(nrcpus); in do_threads()
315 size = CPU_ALLOC_SIZE(nrcpus); in do_threads()
H A Dfutex-wake-parallel.c155 int nrcpus = cpu__max_cpu().cpu; in block_threads() local
160 cpuset = CPU_ALLOC(nrcpus); in block_threads()
162 size = CPU_ALLOC_SIZE(nrcpus); in block_threads()
H A Dnuma.c274 int nrcpus = numa_num_possible_cpus(); in bind_to_cpu() local
278 orig_mask = CPU_ALLOC(nrcpus); in bind_to_cpu()
280 size = CPU_ALLOC_SIZE(nrcpus); in bind_to_cpu()
286 mask = CPU_ALLOC(nrcpus); in bind_to_cpu()
321 int nrcpus = numa_num_possible_cpus(); in bind_to_node() local
326 orig_mask = CPU_ALLOC(nrcpus); in bind_to_node()
328 size = CPU_ALLOC_SIZE(nrcpus); in bind_to_node()
334 mask = CPU_ALLOC(nrcpus); in bind_to_node()
/linux/kernel/
H A Dsmp.c957 static int __init nrcpus(char *str) in nrcpus() function
967 early_param("nr_cpus", nrcpus);