resolve_btf

Function resolve_btf 

Source
pub fn resolve_btf(kernel_dir: Option<&str>) -> Option<PathBuf>
Expand description

Resolve the BTF source file for vmlinux.h generation.

kernel_dir: explicit kernel directory (e.g. from KTSTR_KERNEL).

Prefers {resolved_dir}/vmlinux, then /sys/kernel/btf/vmlinux.