Home
last modified time | relevance | path

Searched refs:fdmap (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-6.6/tools/perf/bench/
H A Depoll-ctl.c71 int *fdmap; member
165 fd = w->fdmap[rnd1 % nfds]; in do_random_epoll_op()
192 do_epoll_op(w, OP_EPOLL_ADD, w->fdmap[i]); in workerfn()
193 do_epoll_op(w, OP_EPOLL_MOD, w->fdmap[i]); in workerfn()
194 do_epoll_op(w, OP_EPOLL_DEL, w->fdmap[i]); in workerfn()
215 ev.data.fd = w->fdmap[i]; in init_fdmaps()
218 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, w->fdmap[i], &ev) < 0) in init_fdmaps()
244 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
245 if (!w->fdmap) in do_threads()
249 w->fdmap[ in do_threads()
[all...]
H A Depoll-wait.c35 * referred to as fdmap. A writer thread will constantly be writing to
38 * is not what we want to stress. The size of the fdmap can be adjusted
123 int *fdmap; member
330 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
331 if (!w->fdmap) in do_threads()
338 w->fdmap[j] = eventfd(0, EFD_NONBLOCK); in do_threads()
339 if (w->fdmap[j] < 0) in do_threads()
342 ev.data.fd = w->fdmap[j]; in do_threads()
346 w->fdmap[j], &ev); in do_threads()
401 shuffle((void *)w->fdmap, nfd in writerfn()
[all...]
/kernel/linux/linux-5.10/tools/perf/bench/
H A Depoll-ctl.c71 int *fdmap; member
165 fd = w->fdmap[rnd1 % nfds]; in do_random_epoll_op()
192 do_epoll_op(w, OP_EPOLL_ADD, w->fdmap[i]); in workerfn()
193 do_epoll_op(w, OP_EPOLL_MOD, w->fdmap[i]); in workerfn()
194 do_epoll_op(w, OP_EPOLL_DEL, w->fdmap[i]); in workerfn()
215 ev.data.fd = w->fdmap[i]; in init_fdmaps()
218 if (epoll_ctl(epollfd, EPOLL_CTL_ADD, w->fdmap[i], &ev) < 0) in init_fdmaps()
237 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
238 if (!w->fdmap) in do_threads()
242 w->fdmap[ in do_threads()
[all...]
H A Depoll-wait.c35 * referred to as fdmap. A writer thread will constantly be writing to
38 * is not what we want to stress. The size of the fdmap can be adjusted
123 int *fdmap; member
323 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
324 if (!w->fdmap) in do_threads()
331 w->fdmap[j] = eventfd(0, EFD_NONBLOCK); in do_threads()
332 if (w->fdmap[j] < 0) in do_threads()
335 ev.data.fd = w->fdmap[j]; in do_threads()
339 w->fdmap[j], &ev); in do_threads()
388 shuffle((void *)w->fdmap, nfd in writerfn()
[all...]

Completed in 4 milliseconds