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