Home
last modified time | relevance | path

Searched refs:nr_threads (Results 1 – 8 of 8) sorted by relevance

/tools/testing/radix-tree/
Dregression1.c192 int nr_threads; in regression1_test() local
198 nr_threads = 2; in regression1_test()
199 pthread_barrier_init(&worker_barrier, NULL, nr_threads); in regression1_test()
201 threads = malloc(nr_threads * sizeof(pthread_t *)); in regression1_test()
203 for (i = 0; i < nr_threads; i++) { in regression1_test()
211 for (i = 0; i < nr_threads; i++) { in regression1_test()
/tools/perf/bench/
Dsched-pipe.c86 int nr_threads = 2; in bench_sched_pipe() local
104 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe()
121 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe()
128 for (t = 0; t < nr_threads; t++) { in bench_sched_pipe()
Dnuma.c81 int nr_threads; member
171 OPT_INTEGER('t', "nr_threads" , &p0.nr_threads, "number of threads per process"),
882 for (t = 0; t < g->p.nr_threads; t++) { in count_process_nodes()
887 task_nr = process_nr*g->p.nr_threads + t; in count_process_nodes()
918 for (t = 0; t < g->p.nr_threads; t++) { in count_node_processes()
923 task_nr = p*g->p.nr_threads + t; in count_node_processes()
1124 if (process_nr == g->p.nr_proc-1 && thread_nr == g->p.nr_threads-1) in worker_thread()
1164 val += do_work(process_data, g->p.bytes_process, thread_nr, g->p.nr_threads, l, val); in worker_thread()
1177 val += do_work(process_data, g->p.bytes_process_locked, thread_nr, g->p.nr_threads, l, val); in worker_thread()
1301 task_nr = process_nr*g->p.nr_threads; in worker_process()
[all …]
/tools/perf/util/
Drb_resort.h148 DECLARE_RESORT_RB(__name)(&__machine->threads, __machine->nr_threads)
Devlist.c393 int nr_threads = perf_evlist__nr_threads(evlist, evsel); in perf_evlist__enable_event_cpu() local
398 for (thread = 0; thread < nr_threads; thread++) { in perf_evlist__enable_event_cpu()
438 int nr_threads = thread_map__nr(evlist->threads); in perf_evlist__alloc_pollfd() local
446 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd()
1130 int nr_threads = thread_map__nr(evlist->threads); in perf_evlist__mmap_per_cpu() local
1140 for (thread = 0; thread < nr_threads; thread++) { in perf_evlist__mmap_per_cpu()
1158 int nr_threads = thread_map__nr(evlist->threads); in perf_evlist__mmap_per_thread() local
1161 for (thread = 0; thread < nr_threads; thread++) { in perf_evlist__mmap_per_thread()
Dmachine.h36 unsigned int nr_threads; member
Devsel.c1624 int nr_cpus, int nr_threads, in perf_evsel__remove_fd() argument
1628 for (int thread = thread_idx; thread < nr_threads - 1; thread++) in perf_evsel__remove_fd()
1634 int nr_threads, int thread_idx) in update_fds() argument
1638 if (cpu_idx >= nr_cpus || thread_idx >= nr_threads) in update_fds()
1644 perf_evsel__remove_fd(pos, nr_cpus, nr_threads, thread_idx); in update_fds()
Dmachine.c46 machine->nr_threads = 0; in machine__init()
451 ++machine->nr_threads; in ____machine__findnew_thread()
731 ret = fprintf(fp, "Threads: %u\n", machine->nr_threads); in machine__fprintf()
1591 --machine->nr_threads; in __machine__remove_thread()