Skip to content
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

Use eBPF RingBuffer instead of PerfEvent #96

Open
qjerome opened this issue Sep 9, 2024 · 0 comments
Open

Use eBPF RingBuffer instead of PerfEvent #96

qjerome opened this issue Sep 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@qjerome
Copy link
Member

qjerome commented Sep 9, 2024

RingBuffer is a more modern and performant way to transmit information from kernel to user land.
So event forwarding could be implemented using it, the only issue is kernel compatibility. It is available only since kernel 5.8 so we cannot replace completely PerfEvent (because kunai currently support kernels back to 5.4).

Resources:
https://github.com/aya-rs/aya/blob/main/test/integration-test/src/tests/ring_buf.rs
https://github.com/aya-rs/aya/blob/main/test/integration-ebpf/src/ring_buf.rs

@qjerome qjerome added the enhancement New feature or request label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant