Lines Matching refs:nthreads
91 static unsigned int nthreads = 0;
128 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
317 for (i = 0; i < nthreads; i++) {
394 shuffle((void *)worker, nthreads, sizeof(*worker));
397 for (i = 0; i < nthreads; i++) {
468 if (!nthreads)
469 nthreads = perf_cpu_map__nr(cpu) - 1;
471 worker = calloc(nthreads, sizeof(*worker));
478 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50;
486 getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs);
493 threads_starting = nthreads;
532 qsort(worker, nthreads, sizeof(struct worker), cmpworker);
534 for (i = 0; i < nthreads; i++) {
553 for (i = 0; i < nthreads; i++)