Lines Matching refs:thread_nr
981 int thread_nr; in perf_event__synthesize_threads() local
995 thread_nr = sysconf(_SC_NPROCESSORS_ONLN); in perf_event__synthesize_threads()
997 thread_nr = nr_threads_synthesize; in perf_event__synthesize_threads()
999 if (thread_nr <= 1) { in perf_event__synthesize_threads()
1006 if (thread_nr > n) in perf_event__synthesize_threads()
1007 thread_nr = n; in perf_event__synthesize_threads()
1009 synthesize_threads = calloc(sizeof(pthread_t), thread_nr); in perf_event__synthesize_threads()
1013 args = calloc(sizeof(*args), thread_nr); in perf_event__synthesize_threads()
1017 num_per_thread = n / thread_nr; in perf_event__synthesize_threads()
1018 m = n % thread_nr; in perf_event__synthesize_threads()
1019 for (i = 0; i < thread_nr; i++) { in perf_event__synthesize_threads()
1033 for (j = i; j < thread_nr; j++) { in perf_event__synthesize_threads()
1038 for (i = 0; i < thread_nr; i++) { in perf_event__synthesize_threads()
1045 for (i = 0; i < thread_nr; i++) in perf_event__synthesize_threads()