Lines Matching refs:worker
117 struct worker { struct
185 struct worker *w = (struct worker *) arg; in workerfn()
239 static void nest_epollfd(struct worker *w) in nest_epollfd()
291 static int do_threads(struct worker *worker, struct perf_cpu_map *cpu) in do_threads() argument
310 struct worker *w = &worker[i]; in do_threads()
355 (void *)(struct worker *) w); in do_threads()
368 struct worker *worker = p; in writerfn() local
380 shuffle((void *)worker, nthreads, sizeof(*worker)); in writerfn()
384 struct worker *w = &worker[i]; in writerfn()
407 struct worker *w1 = (struct worker *) p1; in cmpworker()
408 struct worker *w2 = (struct worker *) p2; in cmpworker()
417 struct worker *worker = NULL; in bench_epoll_wait() local
457 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_wait()
458 if (!worker) { in bench_epoll_wait()
483 do_threads(worker, cpu); in bench_epoll_wait()
497 (void *)(struct worker *) worker); in bench_epoll_wait()
518 qsort(worker, nthreads, sizeof(struct worker), cmpworker); in bench_epoll_wait()
522 worker[i].ops / bench__runtime.tv_sec : 0; in bench_epoll_wait()
528 worker[i].tid, &worker[i].fdmap[0], t); in bench_epoll_wait()
531 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_wait()
532 &worker[i].fdmap[nfds-1], t); in bench_epoll_wait()