Skip to main content

add_btf

Function add_btf 

Source
pub(crate) fn add_btf(
    spec: &Spec<'_>,
    object: &Path,
    output: &Path,
    sized_topology: bool,
)
Expand description

Add to the BTF of object what the Rust toolchain does not emit: the kfuncs’ prototypes and .ksyms entries, the ksym variables, and the arg:trusted tags, and replace the object’s .BTF section with it.