aya
aya copied to clipboard
Add support for the BPF ring buffer API
We should add support for the new ring buffer API: https://www.kernel.org/doc/html/latest/bpf/ringbuf.html
Perhaps we can take some inspiration from my ringbuf implementation in libbpf-rs. We ended up getting a nice API that supports capturing closures as callbacks.
Just FYI, I've started on an early version of ringbuf support over at https://github.com/willfindlay/aya/tree/ringbuf. So far I only have a rough first cut at the BPF side of things, but once I make more progress I will submit a draft PR.
#201 would be a duplicate of this, which one should we keep open?