/linux-master/tools/testing/selftests/net/ |
H A D | tls.c | 1186 struct pollfd fd = { 0, 0, 0 }; 1205 struct pollfd fd = { 0, 0, 0 }; 1219 struct pollfd fd = { 0, 0, 0 }; 1840 struct pollfd pfd = { }; 1913 struct pollfd pfd = { };
|
H A D | txtimestamp.c | 299 struct pollfd pollfd; local 302 memset(&pollfd, 0, sizeof(pollfd)); 303 pollfd.fd = fd; 304 ret = poll(&pollfd, 1, cfg_poll_timeout);
|
H A D | so_txtime.c | 231 struct pollfd pfd = { .fd = fdt, .events = POLLERR };
|
H A D | udpgso_bench_rx.c | 94 struct pollfd pfd;
|
/linux-master/tools/testing/selftests/mm/ |
H A D | uffd-common.c | 508 struct pollfd pollfd[2]; local 517 pollfd[0].fd = uffd; 518 pollfd[0].events = POLLIN; 519 pollfd[1].fd = pipefd[cpu*2]; 520 pollfd[1].events = POLLIN; 525 ret = poll(pollfd, 2, -1); 531 if (pollfd[1].revents) { 532 if (!(pollfd[1].revents & POLLIN)) 533 err("pollfd[ [all...] |
/linux-master/tools/perf/util/ |
H A D | python.c | 1069 for (i = 0; i < evlist->core.pollfd.nr; ++i) { 1072 FILE *fp = fdopen(evlist->core.pollfd.entries[i].fd, "r"); 1079 file = PyFile_FromFd(evlist->core.pollfd.entries[i].fd, "perf", "r", -1,
|
H A D | evlist.c | 1975 struct pollfd *entries = evlist->core.pollfd.entries; 2163 struct pollfd *entries = evlist->core.pollfd.entries; 2385 struct pollfd *entries; 2391 entries = eet->evlist->core.pollfd.entries;
|
H A D | evlist.h | 19 struct pollfd;
|
/linux-master/tools/perf/tests/ |
H A D | builtin-test.c | 307 struct pollfd pfds[2] = {
|
/linux-master/tools/perf/ |
H A D | builtin-top.c | 496 struct pollfd stdin_poll = { .fd = 0, .events = POLLIN }; 675 struct pollfd stdin_poll = { .fd = 0, .events = POLLIN };
|
H A D | builtin-record.c | 108 struct fdarray pollfd; member in struct:record_thread 1115 fdarray__init(&thread_data->pollfd, 64); 1122 for (f = 0; f < evlist->core.pollfd.nr; f++) { 1123 void *ptr = evlist->core.pollfd.priv[f].ptr; 1126 pos = fdarray__dup_entry_from(&thread_data->pollfd, f, 1127 &evlist->core.pollfd); 1130 pr_debug2("thread_data[%p]: pollfd[%d] <- event_fd=%d\n", 1131 thread_data, pos, evlist->core.pollfd.entries[f].fd); 1151 fdarray__exit(&thread_data[t].pollfd); 1175 struct pollfd *e_entrie 1674 struct fdarray *pollfd; local [all...] |
H A D | builtin-ftrace.c | 568 struct pollfd pollfd = { local 621 pollfd.fd = trace_fd; 644 if (poll(&pollfd, 1, -1) < 0) 647 if (pollfd.revents & POLLIN) { 883 struct pollfd pollfd = { local 905 pollfd.fd = trace_fd; 914 if (poll(&pollfd, 1, -1) < 0) 917 if (pollfd [all...] |
/linux-master/tools/lib/perf/include/internal/ |
H A D | evlist.h | 32 struct fdarray pollfd; member in struct:perf_evlist
|
/linux-master/tools/lib/perf/ |
H A D | evlist.c | 32 fdarray__init(&evlist->pollfd, 64); 159 fdarray__exit(&evlist->pollfd); 339 if (fdarray__available_entries(&evlist->pollfd) < nfds && 340 fdarray__grow(&evlist->pollfd, nfds) < 0) 349 int pos = fdarray__add(&evlist->pollfd, fd, revent | POLLERR | POLLHUP, flags); 352 evlist->pollfd.priv[pos].ptr = ptr; 370 return fdarray__filter(&evlist->pollfd, revents_and_mask, 376 return fdarray__poll(&evlist->pollfd, timeout); 659 if (evlist->pollfd.entries == NULL && perf_evlist__alloc_pollfd(evlist) < 0)
|
/linux-master/include/linux/ |
H A D | syscalls.h | 34 struct pollfd; 487 asmlinkage long sys_ppoll(struct pollfd __user *, unsigned int, 490 asmlinkage long sys_ppoll_time32(struct pollfd __user *, unsigned int, 1066 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
|
/linux-master/tools/virtio/ |
H A D | vhost_net_test.c | 38 struct pollfd fds;
|
/linux-master/tools/testing/vsock/ |
H A D | vsock_test_zerocopy.c | 148 struct pollfd fds = { 0 };
|
H A D | vsock_test.c | 838 struct pollfd fds; 1286 struct pollfd fds;
|
/linux-master/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 3367 struct pollfd pollfd; local 3422 pollfd.fd = listener; 3423 pollfd.events = POLLIN | POLLOUT; 3425 EXPECT_GT(poll(&pollfd, 1, -1), 0); 3426 EXPECT_EQ(pollfd.revents, POLLIN); 3441 pollfd.fd = listener; 3442 pollfd.events = POLLIN | POLLOUT; 3444 EXPECT_GT(poll(&pollfd, 1, -1), 0); 3445 EXPECT_EQ(pollfd 3826 struct pollfd pollfd; local 3910 struct pollfd pollfd; local 3967 struct pollfd pollfd; local [all...] |
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_getfd_test.c | 246 struct pollfd fds;
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | xdp_hw_metadata.c | 408 struct pollfd fds[rxq + 1];
|
/linux-master/samples/bpf/ |
H A D | xdp_router_ipv4_user.c | 453 struct pollfd fds_route, fds_arp;
|
/linux-master/fs/ |
H A D | select.c | 843 struct pollfd entries[]; 846 #define POLLFD_PER_PAGE ((PAGE_SIZE-sizeof(struct poll_list)) / sizeof(struct pollfd)) 849 * Fish for pollable events on the pollfd->fd file descriptor. We're only 850 * interested in events matching the pollfd->events mask, and the result 851 * matching that mask is both recorded in pollfd->revents and returned. The 855 static inline __poll_t do_pollfd(struct pollfd *pollfd, poll_table *pwait, argument 859 int fd = pollfd->fd; 871 filter = demangle_poll(pollfd->events) | EPOLLERR | EPOLLHUP; 881 pollfd [all...] |
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | userfaultfd_util.c | 41 struct pollfd pollfd[2]; local 45 pollfd[0].fd = uffd; 46 pollfd[0].events = POLLIN; 47 pollfd[1].fd = pipefd; 48 pollfd[1].events = POLLIN; 50 r = poll(pollfd, 2, -1); 64 if (pollfd[0].revents & POLLERR) { 69 if (pollfd[1].revents & POLLIN) { 70 r = read(pollfd[ [all...] |
/linux-master/tools/lib/api/ |
H A D | io.h | 58 struct pollfd pfds[] = {
|