Libbpf userspace function btf__set_endianness
Set the endianness of the BTF object.
Definition
int btf__set_endianness(struct btf *btf, enum btf_endianness endian);
Parameters
btf
: pointer to astruct btf
objectendian
: endianness to set
Return
Return 0 on success, or a negative error code on failure.
enum btf_endianness
enum btf_endianness {
BTF_LITTLE_ENDIAN = 0,
BTF_BIG_ENDIAN = 1,
};
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