Home
last modified time | relevance | path

Searched refs:thread_nr (Results 1 – 2 of 2) sorted by relevance

/tools/perf/util/
Dsynthetic-events.c731 int thread_nr; in perf_event__synthesize_threads() local
745 thread_nr = sysconf(_SC_NPROCESSORS_ONLN); in perf_event__synthesize_threads()
747 thread_nr = nr_threads_synthesize; in perf_event__synthesize_threads()
749 if (thread_nr <= 1) { in perf_event__synthesize_threads()
755 if (thread_nr > n) in perf_event__synthesize_threads()
756 thread_nr = n; in perf_event__synthesize_threads()
758 synthesize_threads = calloc(sizeof(pthread_t), thread_nr); in perf_event__synthesize_threads()
762 args = calloc(sizeof(*args), thread_nr); in perf_event__synthesize_threads()
766 num_per_thread = n / thread_nr; in perf_event__synthesize_threads()
767 m = n % thread_nr; in perf_event__synthesize_threads()
[all …]
/tools/perf/bench/
Dnuma.c61 int thread_nr; member
1095 int thread_nr = td->thread_nr; in worker_thread() local
1114 set_taskname("thread %d/%d", process_nr, thread_nr); in worker_thread()
1123 if (process_nr == g->p.nr_proc-1 && thread_nr == g->p.nr_threads-1) in worker_thread()
1127 if (process_nr == 0 && thread_nr == 0) in worker_thread()
1132 process_nr, thread_nr, global_data, process_data, thread_data); in worker_thread()
1163 val += do_work(process_data, g->p.bytes_process, thread_nr, g->p.nr_threads, l, val); in worker_thread()
1176 val += do_work(process_data, g->p.bytes_process_locked, thread_nr, g->p.nr_threads, l, val); in worker_thread()
1244 process_nr, thread_nr, runtime_ns_max / bytes_done, val); in worker_thread()
1320 td->thread_nr = t; in worker_process()