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

Kernel < 5.8 support #2

Closed
deansheather opened this issue Dec 3, 2021 · 1 comment
Closed

Kernel < 5.8 support #2

deansheather opened this issue Dec 3, 2021 · 1 comment

Comments

@deansheather
Copy link
Member

Right now, exectrace uses BPF_MAP_TYPE_RINGBUF which is only supported in Linux kernel 5.8+.

To support older kernels, we would need to reimplement the output method to use a perf map instead of a ringbuf:

  • A BPF_MAP_TYPE_PERF_EVENT_ARRAY for the output
  • A BPF_MAP_TYPE_PERCPU_ARRAY for temporary memory storage (because our event struct exceeds the 512 byte BPF stack limit)

This blog post has some examples comparing a ringbuf to a perfmap: https://nakryiko.com/posts/bpf-ringbuf

cc @kylecarbs

@deansheather
Copy link
Member Author

This doesn't seem very important anymore as every cloud uses 5.8+ I'm pretty sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant