| /linux/tools/testing/selftests/connector/ |
| H A D | proc_filter.c | 85 int err = 0, epoll_fd; in register_proc_netlink() local 106 epoll_fd = epoll_create1(EPOLL_CLOEXEC); in register_proc_netlink() 107 if (epoll_fd < 0) { in register_proc_netlink() 120 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, nl_sock, &evn) < 0) { in register_proc_netlink() 125 *efd = epoll_fd; in register_proc_netlink() 213 int handle_events(int epoll_fd, struct proc_event *pev) in handle_events() argument 219 event_count = epoll_wait(epoll_fd, ev, MAX_EVENTS, -1); in handle_events() 243 int epoll_fd, err; in main() local 266 err = register_proc_netlink(&epoll_fd, (void*)&input); in main() 269 err = register_proc_netlink(&epoll_fd, (void*)&op); in main() [all …]
|
| /linux/tools/testing/selftests/bpf/benchs/ |
| H A D | bench_ringbufs.c | 267 int epoll_fd; in ringbuf_custom_setup() 290 ctx->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in roundup_len() 291 if (ctx->epoll_fd < 0) { in roundup_len() 320 err = epoll_ctl(ctx->epoll_fd, EPOLL_CTL_ADD, r->map_fd, &ctx->event); in ringbuf_custom_process_ring() 386 cnt = epoll_wait(ctx->epoll_fd, &ctx->event, 1, -1); in perfbuf_process_sample_raw() 524 int epoll_fd; /* perf event FD */ 544 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, -1); 214 int epoll_fd; global() member 471 int epoll_fd; /* perf event FD */ global() member
|
| /linux/tools/testing/selftests/arm64/gcs/ |
| H A D | gcs-stress.c | 39 static int epoll_fd; variable 139 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, child->stdout, &ev); in start_thread() 334 ret = epoll_wait(epoll_fd, evs, tests, 0); in drain_output() 407 epoll_fd = ret; in main() 463 ret = epoll_wait(epoll_fd, evs, tests, 100); in main()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_test.c | 450 int epoll_fd = epoll_create1(EPOLL_CLOEXEC); in poll_pidfd() local 453 if (epoll_fd == -1) in poll_pidfd() 461 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, pidfd, &event)) { in poll_pidfd() 467 c = epoll_wait(epoll_fd, events, MAX_EVENTS, 5000); in poll_pidfd() 473 close(epoll_fd); in poll_pidfd()
|
| /linux/tools/testing/selftests/arm64/fp/ |
| H A D | fp-stress.c | 43 static int epoll_fd; variable 138 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, child->stdout, &ev); in child_start() 433 ret = epoll_wait(epoll_fd, evs, tests, 0); in drain_output() 523 epoll_fd = ret; in main() 591 ret = epoll_wait(epoll_fd, evs, tests, poll_interval); in main()
|
| /linux/tools/testing/selftests/net/af_unix/ |
| H A D | msg_oob.c | 26 int epoll_fd[2]; /* 0: AF_UNIX receiver in FIXTURE() local 127 self->epoll_fd[i] = epoll_create1(0); in setup_epollpri() 128 ASSERT_GE(self->epoll_fd[i], 0); in setup_epollpri() 130 ret = epoll_ctl(self->epoll_fd[i], EPOLL_CTL_ADD, self->fd[i * 2 + 1], &event); in setup_epollpri() 167 ret[i] = epoll_wait(self->epoll_fd[i], &event[i], 1, 0); in __epollpair()
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 14234 int epoll_fd; /* perf event FD */ in parse_cpu_mask_str() 14272 if (pb->epoll_fd >= 0) in parse_cpu_mask_file() 14273 close(pb->epoll_fd); in parse_cpu_mask_file() 14439 pb->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in bpf_object__destroy_subskeleton() 14440 if (pb->epoll_fd < 0) { in bpf_object__destroy_subskeleton() 14511 if (epoll_ctl(pb->epoll_fd, EPOLL_CTL_ADD, cpu_buf->fd, in bpf_object__attach_skeleton() 14595 return pb->epoll_fd; 14602 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, timeout_ms); 13654 int epoll_fd; /* perf event FD */ global() member
|