Lines Matching defs:pollfd
108 struct fdarray pollfd;
1046 fdarray__init(&thread_data->pollfd, 64);
1053 for (f = 0; f < evlist->core.pollfd.nr; f++) {
1054 void *ptr = evlist->core.pollfd.priv[f].ptr;
1057 pos = fdarray__dup_entry_from(&thread_data->pollfd, f,
1058 &evlist->core.pollfd);
1061 pr_debug2("thread_data[%p]: pollfd[%d] <- event_fd=%d\n",
1062 thread_data, pos, evlist->core.pollfd.entries[f].fd);
1082 fdarray__exit(&thread_data[t].pollfd);
1106 struct pollfd *e_entries = evlist->core.pollfd.entries;
1107 struct pollfd *t_entries = thread_data->pollfd.entries;
1117 pr_err("Thread and evlist pollfd index mismatch\n");
1130 struct fdarray *fda = &evlist->core.pollfd;
1136 ret = fdarray__dup_entry_from(&thread_data->pollfd, i, fda);
1138 pr_err("Failed to duplicate descriptor in main thread pollfd\n");
1141 pr_debug2("thread_data[%p]: pollfd[%d] <- non_perf_event fd=%d\n",
1145 pr_err("Failed to map thread and evlist pollfd indexes\n");
1177 pr_err("Failed to initialize thread[%d] pollfd\n", t);
1187 ret = fdarray__add(&thread_data[t].pollfd, thread_data[t].pipes.msg[0],
1190 pr_err("Failed to add descriptor to thread[%d] pollfd\n", t);
1194 pr_debug2("thread_data[%p]: pollfd[%d] <- ctl_fd=%d\n",
1630 struct fdarray *pollfd;
1643 pollfd = &thread->pollfd;
1654 err = fdarray__poll(pollfd, -1);
1663 if (fdarray__filter(pollfd, POLLERR | POLLHUP,
1668 if (pollfd->entries[ctlfd_pos].revents & POLLHUP) {
1672 pollfd->entries[ctlfd_pos].fd = -1;
1673 pollfd->entries[ctlfd_pos].events = 0;
1676 pollfd->entries[ctlfd_pos].revents = 0;
2656 err = fdarray__poll(&thread->pollfd, -1);
2665 if (fdarray__filter(&thread->pollfd, POLLERR | POLLHUP,