Home
last modified time | relevance | path

Searched refs:fdmap (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/tools/perf/bench/
Depoll-ctl.c72 int *fdmap; member
166 fd = w->fdmap[rnd1 % nfds]; in do_random_epoll_op()
193 do_epoll_op(w, OP_EPOLL_ADD, w->fdmap[i]); in workerfn()
194 do_epoll_op(w, OP_EPOLL_MOD, w->fdmap[i]); in workerfn()
195 do_epoll_op(w, OP_EPOLL_DEL, w->fdmap[i]); in workerfn()
216 ev.data.fd = w->fdmap[i]; in init_fdmaps()
219 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, w->fdmap[i], &ev) < 0) in init_fdmaps()
238 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
239 if (!w->fdmap) in do_threads()
243 w->fdmap[j] = eventfd(0, EFD_NONBLOCK); in do_threads()
[all …]
Depoll-wait.c124 int *fdmap; member
324 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
325 if (!w->fdmap) in do_threads()
332 w->fdmap[j] = eventfd(0, EFD_NONBLOCK); in do_threads()
333 if (w->fdmap[j] < 0) in do_threads()
336 ev.data.fd = w->fdmap[j]; in do_threads()
340 w->fdmap[j], &ev); in do_threads()
389 shuffle((void *)w->fdmap, nfds, sizeof(int)); in writerfn()
394 sz = write(w->fdmap[j], &val, sizeof(val)); in writerfn()
528 worker[i].tid, &worker[i].fdmap[0], t); in bench_epoll_wait()
[all …]