Searched refs:pollfd (Results 1 - 25 of 77) sorted by last modified time

1234

/linux-master/tools/testing/selftests/net/
H A Dtls.c1186 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 Dtxtimestamp.c299 struct pollfd pollfd; local
302 memset(&pollfd, 0, sizeof(pollfd));
303 pollfd.fd = fd;
304 ret = poll(&pollfd, 1, cfg_poll_timeout);
H A Dso_txtime.c231 struct pollfd pfd = { .fd = fdt, .events = POLLERR };
H A Dudpgso_bench_rx.c94 struct pollfd pfd;
/linux-master/tools/testing/selftests/mm/
H A Duffd-common.c508 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 Dpython.c1069 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 Devlist.c1975 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 Devlist.h19 struct pollfd;
/linux-master/tools/perf/tests/
H A Dbuiltin-test.c307 struct pollfd pfds[2] = {
/linux-master/tools/perf/
H A Dbuiltin-top.c496 struct pollfd stdin_poll = { .fd = 0, .events = POLLIN };
675 struct pollfd stdin_poll = { .fd = 0, .events = POLLIN };
H A Dbuiltin-record.c108 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 Dbuiltin-ftrace.c568 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 Devlist.h32 struct fdarray pollfd; member in struct:perf_evlist
/linux-master/tools/lib/perf/
H A Devlist.c32 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 Dsyscalls.h34 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 Dvhost_net_test.c38 struct pollfd fds;
/linux-master/tools/testing/vsock/
H A Dvsock_test_zerocopy.c148 struct pollfd fds = { 0 };
H A Dvsock_test.c838 struct pollfd fds;
1286 struct pollfd fds;
/linux-master/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c3367 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 Dpidfd_getfd_test.c246 struct pollfd fds;
/linux-master/tools/testing/selftests/bpf/
H A Dxdp_hw_metadata.c408 struct pollfd fds[rxq + 1];
/linux-master/samples/bpf/
H A Dxdp_router_ipv4_user.c453 struct pollfd fds_route, fds_arp;
/linux-master/fs/
H A Dselect.c843 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 Duserfaultfd_util.c41 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 Dio.h58 struct pollfd pfds[] = {

Completed in 286 milliseconds

1234