Lines Matching refs:pollfd
108 struct fdarray pollfd; member
1046 fdarray__init(&thread_data->pollfd, 64); in record__thread_data_init_pollfd()
1053 for (f = 0; f < evlist->core.pollfd.nr; f++) { in record__thread_data_init_pollfd()
1054 void *ptr = evlist->core.pollfd.priv[f].ptr; in record__thread_data_init_pollfd()
1057 pos = fdarray__dup_entry_from(&thread_data->pollfd, f, in record__thread_data_init_pollfd()
1058 &evlist->core.pollfd); in record__thread_data_init_pollfd()
1062 thread_data, pos, evlist->core.pollfd.entries[f].fd); in record__thread_data_init_pollfd()
1082 fdarray__exit(&thread_data[t].pollfd); in record__free_thread_data()
1106 struct pollfd *e_entries = evlist->core.pollfd.entries; in record__update_evlist_pollfd_from_thread()
1107 struct pollfd *t_entries = thread_data->pollfd.entries; in record__update_evlist_pollfd_from_thread()
1130 struct fdarray *fda = &evlist->core.pollfd; in record__dup_non_perf_events()
1136 ret = fdarray__dup_entry_from(&thread_data->pollfd, i, fda); in record__dup_non_perf_events()
1187 ret = fdarray__add(&thread_data[t].pollfd, thread_data[t].pipes.msg[0], in record__alloc_thread_data()
1630 struct fdarray *pollfd; in record__thread() local
1643 pollfd = &thread->pollfd; in record__thread()
1654 err = fdarray__poll(pollfd, -1); in record__thread()
1663 if (fdarray__filter(pollfd, POLLERR | POLLHUP, in record__thread()
1668 if (pollfd->entries[ctlfd_pos].revents & POLLHUP) { in record__thread()
1672 pollfd->entries[ctlfd_pos].fd = -1; in record__thread()
1673 pollfd->entries[ctlfd_pos].events = 0; in record__thread()
1676 pollfd->entries[ctlfd_pos].revents = 0; in record__thread()
2677 err = fdarray__poll(&thread->pollfd, -1); in __cmd_record()
2686 if (fdarray__filter(&thread->pollfd, POLLERR | POLLHUP, in __cmd_record()