Lines Matching refs:thread_nr
731 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()
768 for (i = 0; i < thread_nr; i++) { in perf_event__synthesize_threads()
781 for (j = i; j < thread_nr; j++) { in perf_event__synthesize_threads()
786 for (i = 0; i < thread_nr; i++) { in perf_event__synthesize_threads()
793 for (i = 0; i < thread_nr; i++) in perf_event__synthesize_threads()