isovalent / ebpf-docs

An effort to comprehensively document eBPF
https://ebpf-docs.dylanreimerink.nl/
BSD 2-Clause "Simplified" License
177 stars 18 forks source link

helper-function: Usage and examples for ring buffers #40

Closed rutu-sh closed 1 month ago

rutu-sh commented 2 months ago
dylandreimerink commented 1 month ago

Hey @rutu-sh, how is this going? I understand if you are short on time, would it be an idea to merge what you have got so far? That would already be a great improvement.

rutu-sh commented 1 month ago

Hey I got occupied with college research, so I had to put a pause on this for a while :3

I'm having difficulties figuring out how to use the dynptrs with ringbufs. We can start the review on the remaining features - I'll push a commit for dynptr later.

For anyone else trying out dynptr with ringbuf, this would be a good reference: https://lore.kernel.org/bpf/20220402015826.3941317-8-joannekoong@fb.com/#Z31selftests:bpf:progs:dynptr_success.c. I dug through the original commit for the kernel for this - but couldn't replicate it further on my system.