Home
last modified time | relevance | path

Searched refs:epoll_fd (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/tools/lib/bpf/
Dringbuf.c38 int epoll_fd; member
131 if (epoll_ctl(rb->epoll_fd, EPOLL_CTL_ADD, map_fd, e) < 0) { in ring_buffer__add()
152 if (rb->epoll_fd >= 0) in ring_buffer__free()
153 close(rb->epoll_fd); in ring_buffer__free()
176 rb->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in ring_buffer__new()
177 if (rb->epoll_fd < 0) { in ring_buffer__new()
280 cnt = epoll_wait(rb->epoll_fd, rb->events, rb->ring_cnt, timeout_ms); in ring_buffer__poll()
Dlibbpf.c9969 int epoll_fd; /* perf event FD */ member
10007 if (pb->epoll_fd >= 0) in perf_buffer__free()
10008 close(pb->epoll_fd); in perf_buffer__free()
10156 pb->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in __perf_buffer__new()
10157 if (pb->epoll_fd < 0) { in __perf_buffer__new()
10228 if (epoll_ctl(pb->epoll_fd, EPOLL_CTL_ADD, cpu_buf->fd, in __perf_buffer__new()
10312 return pb->epoll_fd; in perf_buffer__epoll_fd()
10319 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, timeout_ms); in perf_buffer__poll()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/benchs/
Dbench_ringbufs.c214 int epoll_fd; member
237 ctx->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in ringbuf_custom_setup()
238 if (ctx->epoll_fd < 0) { in ringbuf_custom_setup()
267 err = epoll_ctl(ctx->epoll_fd, EPOLL_CTL_ADD, r->map_fd, &ctx->event); in ringbuf_custom_setup()
333 cnt = epoll_wait(ctx->epoll_fd, &ctx->event, 1, -1); in ringbuf_custom_consumer()
475 int epoll_fd; /* perf event FD */ member
495 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, -1); in perfbuf_custom_consumer()
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/
Dpidfd_test.c397 int epoll_fd = epoll_create1(EPOLL_CLOEXEC); in poll_pidfd() local
400 if (epoll_fd == -1) in poll_pidfd()
408 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, pidfd, &event)) { in poll_pidfd()
414 c = epoll_wait(epoll_fd, events, MAX_EVENTS, 5000); in poll_pidfd()
420 close(epoll_fd); in poll_pidfd()