Libbpf userspace function btf__load_from_kernel_by_id_split
Load BTF object from the kernel by its ID.
Definition
struct btf *btf__load_from_kernel_by_id_split(__u32 id, struct btf *base_btf);
Parameters
id
: ID of the BTF objectbase_btf
: pointer to astruct btf
object that will be used as the base BTF object
Return
Return a pointer to a struct btf
object on success, or NULL
on failure. The caller is responsible for freeing the returned object with btf__free
.
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome