Lines Matching refs:pollfd
110 struct fdarray pollfd; member
1149 fdarray__init(&thread_data->pollfd, 64); in record__thread_data_init_pollfd()
1156 for (f = 0; f < evlist->core.pollfd.nr; f++) { in record__thread_data_init_pollfd()
1157 void *ptr = evlist->core.pollfd.priv[f].ptr; in record__thread_data_init_pollfd()
1160 pos = fdarray__dup_entry_from(&thread_data->pollfd, f, in record__thread_data_init_pollfd()
1161 &evlist->core.pollfd); in record__thread_data_init_pollfd()
1165 thread_data, pos, evlist->core.pollfd.entries[f].fd); in record__thread_data_init_pollfd()
1185 fdarray__exit(&thread_data[t].pollfd); in record__free_thread_data()
1209 struct pollfd *e_entries = evlist->core.pollfd.entries; in record__update_evlist_pollfd_from_thread()
1210 struct pollfd *t_entries = thread_data->pollfd.entries; in record__update_evlist_pollfd_from_thread()
1233 struct fdarray *fda = &evlist->core.pollfd; in record__dup_non_perf_events()
1239 ret = fdarray__dup_entry_from(&thread_data->pollfd, i, fda); in record__dup_non_perf_events()
1290 ret = fdarray__add(&thread_data[t].pollfd, thread_data[t].pipes.msg[0], in record__alloc_thread_data()
1706 struct fdarray *pollfd; in record__thread() local
1719 pollfd = &thread->pollfd; in record__thread()
1730 err = fdarray__poll(pollfd, -1); in record__thread()
1739 if (fdarray__filter(pollfd, POLLERR | POLLHUP, in record__thread()
1744 if (pollfd->entries[ctlfd_pos].revents & POLLHUP) { in record__thread()
1748 pollfd->entries[ctlfd_pos].fd = -1; in record__thread()
1749 pollfd->entries[ctlfd_pos].events = 0; in record__thread()
1752 pollfd->entries[ctlfd_pos].revents = 0; in record__thread()
2765 err = fdarray__poll(&thread->pollfd, -1); in __cmd_record()
2774 if (fdarray__filter(&thread->pollfd, POLLERR | POLLHUP, in __cmd_record()