anakryiko / btfdump

BTF introspection tool
BSD 2-Clause "Simplified" License
28 stars 7 forks source link

btfdump: Allow to dump from /sys/kernel/btf/vmlinux #16

Open vadorovsky opened 8 months ago

vadorovsky commented 8 months ago

Support dumping BTF not only from ELF files, but also from raw BTF information (which starts directly with BTF magic number) like the one peresent in /sys/kernel/btf/vmlinux.

This way, btfdump can be used for generating the vmlinux.h for the given kernel.

Also, don't use mmap, since it doesn't work on sysfs.

anakryiko commented 7 months ago

@vadorovsky do you plan on posting an update for this?

vadorovsky commented 7 months ago

@anakryiko Yes, sorry, I will address your comments later today.

vadorovsky commented 7 months ago

(still working on that - I will try to wrap during during holidays)