aya icon indicating copy to clipboard operation
aya copied to clipboard

Add support for the BPF ring buffer API

Open alessandrod opened this issue 4 years ago • 3 comments

We should add support for the new ring buffer API: https://www.kernel.org/doc/html/latest/bpf/ringbuf.html

alessandrod avatar Jun 21 '21 10:06 alessandrod

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.

willfindlay avatar Jun 28 '21 01:06 willfindlay

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.

willfindlay avatar Oct 21 '21 21:10 willfindlay

#201 would be a duplicate of this, which one should we keep open?

ishitatsuyuki avatar Jun 01 '22 05:06 ishitatsuyuki