Transitioning to BTF Format for eBPF Maps in our examples #1398
Unanswered
kerwenwwer
asked this question in
Q&A
Replies: 1 comment
-
Makes sense. BTF style map definitions will work on old kernels as well, since it's all in user space. Feel free to submit a PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, when I reviewed the examples in this project, I noticed many of our examples utilize the older bpf_map_def method for declaring eBPF maps. However, since 2018, we have the new BTF format available for declaring eBPF maps, e.g.,
At the same time, I've also discovered that even Linux 4.19 has reached its End of Life (EOL) as of January this year. I think, although forward compatibility is very important, for those who now wish to understand how to write and use eBPF from the examples, it might be more appropriate to default to examples based on the BPF Type Format. For users with older kernel versions, perhaps we could offer an additional guide to inform them on how to modify map declarations.
Beta Was this translation helpful? Give feedback.
All reactions