libbpf: Add base BTF accessor

Add ability to get base BTF. It can be also used to check if BTF is split BTF.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201202065244.530571-3-andrii@kernel.org
This commit is contained in:
Andrii Nakryiko
2020-12-01 22:52:42 -08:00
committed by Andrii Nakryiko
parent 65e4be6f5d
commit a741bc6479
3 changed files with 7 additions and 0 deletions

View File

@@ -340,6 +340,7 @@ LIBBPF_0.2.0 {
LIBBPF_0.3.0 {
global:
btf__base_btf;
btf__parse_elf_split;
btf__parse_raw_split;
btf__parse_split;