Home
last modified time | relevance | path

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

/linux-6.1.9/tools/lib/bpf/
Dringbuf.c39 int epoll_fd; member
51 int epoll_fd; member
153 if (epoll_ctl(rb->epoll_fd, EPOLL_CTL_ADD, map_fd, e) < 0) { in ring_buffer__add()
174 if (rb->epoll_fd >= 0) in ring_buffer__free()
175 close(rb->epoll_fd); in ring_buffer__free()
198 rb->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in ring_buffer__new()
199 if (rb->epoll_fd < 0) { in ring_buffer__new()
302 cnt = epoll_wait(rb->epoll_fd, rb->events, rb->ring_cnt, timeout_ms); in ring_buffer__poll()
323 return rb->epoll_fd; in ring_buffer__epoll_fd()
345 if (rb->epoll_fd >= 0) in user_ring_buffer__free()
[all …]
Dlibbpf.c11545 int epoll_fd; /* perf event FD */ member
11583 if (pb->epoll_fd >= 0) in perf_buffer__free()
11584 close(pb->epoll_fd); in perf_buffer__free()
11748 pb->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in __perf_buffer__new()
11749 if (pb->epoll_fd < 0) { in __perf_buffer__new()
11820 if (epoll_ctl(pb->epoll_fd, EPOLL_CTL_ADD, cpu_buf->fd, in __perf_buffer__new()
11904 return pb->epoll_fd; in perf_buffer__epoll_fd()
11911 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, timeout_ms); in perf_buffer__poll()
/linux-6.1.9/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()
471 int epoll_fd; /* perf event FD */ member
491 cnt = epoll_wait(pb->epoll_fd, pb->events, pb->cpu_cnt, -1); in perfbuf_custom_consumer()
/linux-6.1.9/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()
/linux-6.1.9/tools/testing/selftests/arm64/fp/
Dfp-stress.c40 static int epoll_fd; variable
110 ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, child->stdout, &ev); in child_start()
382 ret = epoll_wait(epoll_fd, &ev, 1, 0); in drain_output()
466 epoll_fd = ret; in main()
513 ret = epoll_wait(epoll_fd, &ev, 1, 1000); in main()