Home
last modified time | relevance | path

Searched refs:nfds (Results 1 – 6 of 6) sorted by relevance

/tools/perf/bench/
Depoll-ctl.c60 static unsigned int nfds = 64; variable
77 OPT_UINTEGER('f', "nfds", &nfds, "Specify amount of file descriptors to monitor for each thread"),
165 fd = w->fdmap[rnd1 % nfds]; in do_random_epoll_op()
191 for (i = 0; i < nfds; i++) { in workerfn()
214 for (i = 0; i < nfds; i+=inc) { in init_fdmaps()
237 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
241 for (j = 0; j < nfds; j++) { in do_threads()
344 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_ctl()
352 getpid(), nthreads, nfds, nsecs); in bench_epoll_ctl()
396 if (nfds == 1) in bench_epoll_ctl()
[all …]
Depoll-wait.c111 static unsigned int nfds = 64; variable
130 …OPT_UINTEGER('f', "nfds", &nfds, "Specify amount of file descriptors to monitor for each threa…
323 w->fdmap = calloc(nfds, sizeof(int)); in do_threads()
327 for (j = 0; j < nfds; j++) { in do_threads()
388 shuffle((void *)w->fdmap, nfds, sizeof(int)); in writerfn()
391 for (j = 0; j < nfds; j++) { in writerfn()
464 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50; in bench_epoll_wait()
472 getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs); in bench_epoll_wait()
525 if (nfds == 1) in bench_epoll_wait()
531 &worker[i].fdmap[nfds-1], t); in bench_epoll_wait()
/tools/perf/lib/
Devlist.c250 int nfds = 0; in perf_evlist__alloc_pollfd() local
255 nfds += nr_cpus; in perf_evlist__alloc_pollfd()
257 nfds += nr_cpus * nr_threads; in perf_evlist__alloc_pollfd()
260 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd()
261 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd()
/tools/testing/selftests/x86/
Dtest_syscall_vdso.c171 int nfds; variable
184 nfds = 42; in prep_args()
/tools/include/nolibc/
Dnolibc.h1636 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument
1638 return my_syscall3(__NR_poll, fds, nfds, timeout); in sys_poll()
1660 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in sys_select() argument
1667 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout }; in sys_select()
1676 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL); in sys_select()
1681 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout); in sys_select()
2073 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument
2075 int ret = sys_poll(fds, nfds, timeout); in poll()
2134 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in select() argument
2136 int ret = sys_select(nfds, rfds, wfds, efds, timeout); in select()
/tools/testing/selftests/net/
Dnettest.c925 int nfds; in msg_loop() local
946 nfds = interactive ? MAX(fileno(stdin), sd) + 1 : sd + 1; in msg_loop()
953 rc = select(nfds, &rfds, NULL, NULL, ptval); in msg_loop()