Created attachment 855483 [details]
Python-base BPF Type Format parser
Here the script I used to dump raw BTF (which took me too long to make it work)
For parsing BTF of the kernel (or grab vmlinuz from boot, extract it, and give
it path, maybe runtime BTF ended up being different from BTF inside .BTF
section of vmlinux)
./parse_btf.py /sys/kernel/btf/vmlinux
For parsing BTF on kernel module do this
./parse_btf.py --base-btf=/sys/kernel/btf/vmlinux ./ipheth.ko