-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New eBPF API to insert events into ring buffer eBPF map. #3572
Comments
I would suggest asking on the Linux bpf list or slack channel if there is a way to do this scenario on Linux. |
Per email thread with Andrii, the correct map type is
|
@dthaler - based on the latest on this thread I think Andrii does not have any objections to the API. Although he does not have time to work on this. The IOCTL approach that we would take in Windows is likely not going to work on Linux - so we would have a different implementation in Linux. The alternative that I proposed for Linux (a program invoked by bpf_prog_test that writes into a ring buffer) is cumbersome as pointed out by Andrii. Dave, please approve the use of this API, otherwise the only way forward will be the above cumbersome workaround. |
I didn't see any agreement on the API from Andrii or others, but I also saw no explanation as to why it would not be appropriate on Linux. So I'd keep it a windows-only api (meaning starting with |
A common use case of an eBPF ring buffer map to use as a queue of events generated by eBPF programs that can be read in-order by user space applications. The API request is to let user space applications to write events into the ring buffer map, such that events by eBPF programs in kernel and user space applications are interleaved in the order they were generated, that can be consumed by another user space application
The text was updated successfully, but these errors were encountered: