Libbpf userspace function perf_buffer__epoll_fd
Get an file descriptor that can be used to sleep until data is available in the perf buffer.
Definition
int perf_buffer__epoll_fd(const struct perf_buffer *pb);
Parameters
pb
: perf buffer to get theepoll
set file descriptor for.
Returns
File descriptor of an epoll
set that can be used to sleep until data is available in the perf buffer.
Usage
The returned file descriptor is created with epoll_create
. The file descriptor can be used with epoll_wait
to sleep until data is available in any of the perf buffer.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome