Lines Matching refs:worker
67 struct worker { struct
132 static inline void do_epoll_op(struct worker *w, int op, int fd) in do_epoll_op()
160 static inline void do_random_epoll_op(struct worker *w) in do_random_epoll_op()
174 struct worker *w = (struct worker *) arg; in workerfn()
204 static void init_fdmaps(struct worker *w, int pct) in init_fdmaps()
223 static int do_threads(struct worker *worker, struct perf_cpu_map *cpu) in do_threads() argument
234 struct worker *w = &worker[i]; in do_threads()
267 (void *)(struct worker *) w); in do_threads()
304 struct worker *worker = NULL; in bench_epoll_ctl() local
339 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_ctl()
340 if (!worker) in bench_epoll_ctl()
366 do_threads(worker, cpu); in bench_epoll_ctl()
379 ret = pthread_join(worker[i].thread, NULL); in bench_epoll_ctl()
393 t[j] = worker[i].ops[j]; in bench_epoll_ctl()
399 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_ctl()
403 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_ctl()
404 &worker[i].fdmap[nfds-1], in bench_epoll_ctl()