Searched refs:fdmap (Results 1 – 2 of 2) sorted by relevance
| /Linux-v5.15/tools/perf/bench/ |
| D | epoll-ctl.c | 70 int *fdmap; member 164 fd = w->fdmap[rnd1 % nfds]; in do_random_epoll_op() 191 do_epoll_op(w, OP_EPOLL_ADD, w->fdmap[i]); in workerfn() 192 do_epoll_op(w, OP_EPOLL_MOD, w->fdmap[i]); in workerfn() 193 do_epoll_op(w, OP_EPOLL_DEL, w->fdmap[i]); in workerfn() 214 ev.data.fd = w->fdmap[i]; in init_fdmaps() 217 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, w->fdmap[i], &ev) < 0) in init_fdmaps() 236 w->fdmap = calloc(nfds, sizeof(int)); in do_threads() 237 if (!w->fdmap) in do_threads() 241 w->fdmap[j] = eventfd(0, EFD_NONBLOCK); in do_threads() [all …]
|
| D | epoll-wait.c | 122 int *fdmap; member 322 w->fdmap = calloc(nfds, sizeof(int)); in do_threads() 323 if (!w->fdmap) in do_threads() 330 w->fdmap[j] = eventfd(0, EFD_NONBLOCK); in do_threads() 331 if (w->fdmap[j] < 0) in do_threads() 334 ev.data.fd = w->fdmap[j]; in do_threads() 338 w->fdmap[j], &ev); in do_threads() 387 shuffle((void *)w->fdmap, nfds, sizeof(int)); in writerfn() 392 sz = write(w->fdmap[j], &val, sizeof(val)); in writerfn() 528 worker[i].tid, &worker[i].fdmap[0], t); in bench_epoll_wait() [all …]
|