Lines Matching refs:pollfd

108 	struct fdarray		pollfd;
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_entries = evlist->core.pollfd.entries;
1176 struct pollfd *t_entries = thread_data->pollfd.entries;
1186 pr_err("Thread and evlist pollfd index mismatch\n");
1199 struct fdarray *fda = &evlist->core.pollfd;
1205 ret = fdarray__dup_entry_from(&thread_data->pollfd, i, fda);
1207 pr_err("Failed to duplicate descriptor in main thread pollfd\n");
1210 pr_debug2("thread_data[%p]: pollfd[%d] <- non_perf_event fd=%d\n",
1214 pr_err("Failed to map thread and evlist pollfd indexes\n");
1246 pr_err("Failed to initialize thread[%d] pollfd\n", t);
1256 ret = fdarray__add(&thread_data[t].pollfd, thread_data[t].pipes.msg[0],
1259 pr_err("Failed to add descriptor to thread[%d] pollfd\n", t);
1263 pr_debug2("thread_data[%p]: pollfd[%d] <- ctl_fd=%d\n",
1674 struct fdarray *pollfd;
1687 pollfd = &thread->pollfd;
1698 err = fdarray__poll(pollfd, -1);
1707 if (fdarray__filter(pollfd, POLLERR | POLLHUP,
1712 if (pollfd->entries[ctlfd_pos].revents & POLLHUP) {
1716 pollfd->entries[ctlfd_pos].fd = -1;
1717 pollfd->entries[ctlfd_pos].events = 0;
1720 pollfd->entries[ctlfd_pos].revents = 0;
2715 err = fdarray__poll(&thread->pollfd, -1);
2724 if (fdarray__filter(&thread->pollfd, POLLERR | POLLHUP,