Lines Matching refs:nthreads
91 static unsigned int nthreads = 0; variable
128 OPT_UINTEGER('t', "threads", &nthreads, "Specify amount of threads"),
317 for (i = 0; i < nthreads; i++) { in do_threads()
394 shuffle((void *)worker, nthreads, sizeof(*worker)); in writerfn()
397 for (i = 0; i < nthreads; i++) { in writerfn()
473 if (!nthreads) in bench_epoll_wait()
474 nthreads = perf_cpu_map__nr(cpu) - 1; in bench_epoll_wait()
476 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_wait()
483 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait()
491 getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs); in bench_epoll_wait()
498 threads_starting = nthreads; in bench_epoll_wait()
537 qsort(worker, nthreads, sizeof(struct worker), cmpworker); in bench_epoll_wait()
539 for (i = 0; i < nthreads; i++) { in bench_epoll_wait()
558 for (i = 0; i < nthreads; i++) in bench_epoll_wait()