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