aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.map
diff options
context:
space:
mode:
authorQuentin Monnet <quentin.monnet@netronome.com>2019-08-20 10:31:53 +0100
committerAlexei Starovoitov <ast@kernel.org>2019-08-20 09:51:06 -0700
commit09d7c2e32b6e06d58fe7a5aa38847f4719ab4cc7 (patch)
tree468ec4aa0449a0e88497e2ab306f567dda65f0bf /tools/lib/bpf/libbpf.map
parentlibbpf: refactor bpf_*_get_next_id() functions (diff)
downloadlinux-dev-09d7c2e32b6e06d58fe7a5aa38847f4719ab4cc7.tar.xz
linux-dev-09d7c2e32b6e06d58fe7a5aa38847f4719ab4cc7.zip
libbpf: add bpf_btf_get_next_id() to cycle through BTF objects
Add an API function taking a BTF object id and providing the id of the next BTF object in the kernel. This can be used to list all BTF objects loaded on the system. v2: - Rebase on top of Andrii's changes regarding libbpf versioning. Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/libbpf.map')
-rw-r--r--tools/lib/bpf/libbpf.map2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map
index 4e72df8e98ba..664ce8e7a60e 100644
--- a/tools/lib/bpf/libbpf.map
+++ b/tools/lib/bpf/libbpf.map
@@ -186,4 +186,6 @@ LIBBPF_0.0.4 {
} LIBBPF_0.0.3;
LIBBPF_0.0.5 {
+ global:
+ bpf_btf_get_next_id;
} LIBBPF_0.0.4;