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

Support and test BTF output #12

Open
jpsamaroo opened this issue Jan 12, 2021 · 1 comment
Open

Support and test BTF output #12

jpsamaroo opened this issue Jan 12, 2021 · 1 comment

Comments

@jpsamaroo
Copy link
Owner

jpsamaroo commented Jan 12, 2021

BPF Type Format (BTF) is the debuginfo for eBPF, and is used by libbpf to ensure that accesses to in-kernel structures are correct and safe to execute, and to perform relocations and rewrites as necessary. We should test that our BTF output is solid and matches what libbpf expects.

@jpsamaroo
Copy link
Owner Author

We could also help ourselves in the interim by dynamically generating kernel structures dynamically, as an optional build-time step, by running bpftool btf dump file /sys/kernel/btf/vmlinux format c when possible (as pointed out by https://facebookmicrosites.github.io/bpf/blog/2020/02/19/bpf-portability-and-co-re.html).

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

No branches or pull requests

1 participant