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?
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 usebpftool 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?