Skip to content

Libbpf userspace function btf__parse_elf_split

0.3.0

Parse BTF from an ELF file, using a base BTF object.

Definition

struct btf *btf__parse_elf_split(const char *path, struct btf *base_btf);

Parameters

  • path: path to the ELF file containing BTF data
  • base_btf: pointer to a struct 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