aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.map
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-10-20 20:38:57 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2019-10-21 14:49:12 +0200
commitf1eead9e3ceef67b98be4b55ed1bfcfa4497b7db (patch)
treea07798031fd8a292c208edb054e46d24d44c6bad /tools/lib/bpf/libbpf.map
parenttools: Sync if_link.h (diff)
downloadlinux-dev-f1eead9e3ceef67b98be4b55ed1bfcfa4497b7db.tar.xz
linux-dev-f1eead9e3ceef67b98be4b55ed1bfcfa4497b7db.zip
libbpf: Add bpf_program__get_{type, expected_attach_type) APIs
There are bpf_program__set_type() and bpf_program__set_expected_attach_type(), but no corresponding getters, which seems rather incomplete. Fix this. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20191021033902.3856966-3-andriin@fb.com
Diffstat (limited to '')
-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 4d241fd92dd4..d1473ea4d7a5 100644
--- a/tools/lib/bpf/libbpf.map
+++ b/tools/lib/bpf/libbpf.map
@@ -195,4 +195,6 @@ LIBBPF_0.0.6 {
global:
bpf_object__open_file;
bpf_object__open_mem;
+ bpf_program__get_expected_attach_type;
+ bpf_program__get_type;
} LIBBPF_0.0.5;