Libbpf userspace function bpf_object__btf
Returns the BTF of the BPF object.
Definition
struct btf *bpf_object__btf(const struct bpf_object *obj);
Parameter
obj
: Pointer to a valid BPF object
Returns
A pointer to the BTF of the BPF object; NULL
if the BPF object has no BTF.
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