-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Enable BPF Type Format (BTF)CONFIG_DEBUG_INFO_BTF
#6622
Comments
If you'd tried to build the kernel yourself you would have discovered that you can't just enable DEBUG_INFO_BTF - it depends on DEBUG_INFO being enabled for the whole kernel build, which it isn't. The kconfig file says:
I'll leave this issue open for comments, but I'm pretty sure the answer is going to be a no. |
Hi, yes, this was a rough proposal without going into the exact config changes to see if it would be something you would consider and to understand any historical context. The specific flags I have experimented with:
Which in my box resulted in a ~5MB increase. This seems very low, even with compression, so perhaps I did something wrong. Another possibility would be to extract the debug info from the final To make these changes I've added the new flags to $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- bcm2711_defconfig
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image modules dtbs -j$(nproc --all) |
Describe the bug
BTF is necessary for running modern BPF applications, enabling it would allow for greater observability and debuggability of software running on Raspberry Pis. Without it, many BPF applications won't run.
Steps to reproduce the behaviour
Run any modern BPF application, such as lightswitch on any Raspberry Pi running Raspberry Pi OS. I only tested in on a Pi 4 though.
Device (s)
Raspberry Pi 4 Mod. B
System
(does not apply)
Logs
(does not apply)
Additional context
libbpf fails to load programs and logs:
The text was updated successfully, but these errors were encountered: