aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.map
diff options
context:
space:
mode:
authorDaniel Müller <deso@posteo.net>2022-05-23 23:04:26 +0000
committerAndrii Nakryiko <andrii@kernel.org>2022-06-02 16:26:33 -0700
commitba5d1b5802d4a732cb563e81ff30b7f514257a99 (patch)
tree1f53ac89fdf96ece712a6c3e733dcfc8cd4dec10 /tools/lib/bpf/libbpf.map
parentbpftool: Use libbpf_bpf_attach_type_str (diff)
downloadlinux-dev-ba5d1b5802d4a732cb563e81ff30b7f514257a99.tar.xz
linux-dev-ba5d1b5802d4a732cb563e81ff30b7f514257a99.zip
libbpf: Introduce libbpf_bpf_link_type_str
This change introduces a new function, libbpf_bpf_link_type_str, to the public libbpf API. The function allows users to get a string representation for a bpf_link_type enum variant. Signed-off-by: Daniel Müller <deso@posteo.net> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Quentin Monnet <quentin@isovalent.com> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20220523230428.3077108-11-deso@posteo.net
Diffstat (limited to 'tools/lib/bpf/libbpf.map')
-rw-r--r--tools/lib/bpf/libbpf.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map
index 44c53694c22b..38e284ff057d 100644
--- a/tools/lib/bpf/libbpf.map
+++ b/tools/lib/bpf/libbpf.map
@@ -463,6 +463,7 @@ LIBBPF_0.8.0 {
LIBBPF_1.0.0 {
global:
libbpf_bpf_attach_type_str;
+ libbpf_bpf_link_type_str;
libbpf_bpf_map_type_str;
libbpf_bpf_prog_type_str;