Lines Matching refs:worker
66 struct worker { struct
131 static inline void do_epoll_op(struct worker *w, int op, int fd) in do_epoll_op()
159 static inline void do_random_epoll_op(struct worker *w) in do_random_epoll_op()
173 struct worker *w = (struct worker *) arg; in workerfn()
203 static void init_fdmaps(struct worker *w, int pct) in init_fdmaps()
222 static int do_threads(struct worker *worker, struct perf_cpu_map *cpu) in do_threads() argument
233 struct worker *w = &worker[i]; in do_threads()
266 (void *)(struct worker *) w); in do_threads()
303 struct worker *worker = NULL; in bench_epoll_ctl() local
338 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_ctl()
339 if (!worker) in bench_epoll_ctl()
365 do_threads(worker, cpu); in bench_epoll_ctl()
378 ret = pthread_join(worker[i].thread, NULL); in bench_epoll_ctl()
392 t[j] = worker[i].ops[j]; in bench_epoll_ctl()
398 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_ctl()
402 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_ctl()
403 &worker[i].fdmap[nfds-1], in bench_epoll_ctl()