diff options
author | Quentin Monnet <quentin@isovalent.com> | 2021-07-29 18:20:27 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-07-30 02:23:59 +0200 |
commit | 61fc51b1d3e5915e356f2c0b67cd3bb13b640413 (patch) | |
tree | cb7fd1759686f6cdb295a30b0cda13f402f2fe3b /tools/lib/bpf/libbpf.map | |
parent | tools: Replace btf__get_from_id() with btf__load_from_kernel_by_id() (diff) | |
download | linux-61fc51b1d3e5915e356f2c0b67cd3bb13b640413.tar.xz linux-61fc51b1d3e5915e356f2c0b67cd3bb13b640413.zip |
libbpf: Add split BTF support for btf__load_from_kernel_by_id()
Add a new API function btf__load_from_kernel_by_id_split(), which takes
a pointer to a base BTF object in order to support split BTF objects
when retrieving BTF information from the kernel.
Reference: https://github.com/libbpf/libbpf/issues/314
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20210729162028.29512-8-quentin@isovalent.com
Diffstat (limited to 'tools/lib/bpf/libbpf.map')
-rw-r--r-- | tools/lib/bpf/libbpf.map | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map index 3a9c6939301e..5aca3686ca5e 100644 --- a/tools/lib/bpf/libbpf.map +++ b/tools/lib/bpf/libbpf.map @@ -376,6 +376,7 @@ LIBBPF_0.5.0 { bpf_program__attach_kprobe_opts; bpf_object__gen_loader; btf__load_from_kernel_by_id; + btf__load_from_kernel_by_id_split; btf__load_into_kernel; btf_dump__dump_type_data; libbpf_set_strict_mode; |