btf:the system lacks the BTF information of the KVM kernel module
nanshuaibo opened this issue · comments
In some systems, only the BTF information of vmlinux is available. However, when I write eBPF programs related to KVM modules, I need to use data structures related to KVM modules. But when I use bpftool btf dump file /sys/kernel/btf/vmlinux format c > ./include/vmlinux.h
to generate the header file, it doesn't contain the definitions of KVM-related data structures. So, I use bpftool btf dump file /sys/kernel/btf/kvm format c > ./include/vmlinux.h
, which generates a header file with the relevant data structure definitions. However, for some systems without the KVM module's BTF file, how should this be resolved?