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
241 struct worker *w = &worker[i]; in do_threads()
277 (void *)(struct worker *) w); in do_threads()
317 struct worker *worker = NULL; in bench_epoll_ctl() local
352 worker = calloc(nthreads, sizeof(*worker)); in bench_epoll_ctl()
353 if (!worker) in bench_epoll_ctl()
379 do_threads(worker, cpu); in bench_epoll_ctl()
392 ret = pthread_join(worker[i].thread, NULL); in bench_epoll_ctl()
406 t[j] = worker[i].ops[j]; in bench_epoll_ctl()
412 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_ctl()
416 worker[i].tid, &worker[i].fdmap[0], in bench_epoll_ctl()
417 &worker[i].fdmap[nfds-1], in bench_epoll_ctl()