Lines Matching refs:worker
118 struct worker { struct
186 struct worker *w = (struct worker *) arg; in workerfn()
240 static void nest_epollfd(struct worker *w) in nest_epollfd()
292 static int do_threads(struct worker *worker, struct perf_cpu_map *cpu) in do_threads() argument
318 struct worker *w = &worker[i]; in do_threads()
366 (void *)(struct worker *) w); in do_threads()
382 struct worker *worker = p; in writerfn() local
394 shuffle((void *)worker, nthreads, sizeof(*worker)); in writerfn()
398 struct worker *w = &worker[i]; in writerfn()
421 struct worker *w1 = (struct worker *) p1; in cmpworker()
422 struct worker *w2 = (struct worker *) p2; in cmpworker()
431 struct worker *worker = NULL; in bench_epoll_wait() local
471 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_wait()
472 if (!worker) { in bench_epoll_wait()
497 do_threads(worker, cpu); in bench_epoll_wait()
511 (void *)(struct worker *) worker); in bench_epoll_wait()
532 qsort(worker, nthreads, sizeof(struct worker), cmpworker); in bench_epoll_wait()
536 worker[i].ops / bench__runtime.tv_sec : 0; in bench_epoll_wait()
542 worker[i].tid, &worker[i].fdmap[0], t); in bench_epoll_wait()
545 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_wait()
546 &worker[i].fdmap[nfds-1], t); in bench_epoll_wait()
554 free(worker[i].fdmap); in bench_epoll_wait()
556 free(worker); in bench_epoll_wait()