diff options
author | Andrii Nakryiko <andriin@fb.com> | 2019-10-21 05:38:57 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-10-21 14:49:12 +0200 |
commit | f1eead9e3ceef67b98be4b55ed1bfcfa4497b7db (patch) | |
tree | a07798031fd8a292c208edb054e46d24d44c6bad /tools/lib/bpf/libbpf.map | |
parent | tools: Sync if_link.h (diff) | |
download | linux-f1eead9e3ceef67b98be4b55ed1bfcfa4497b7db.tar.xz linux-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 'tools/lib/bpf/libbpf.map')
-rw-r--r-- | tools/lib/bpf/libbpf.map | 2 |
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; |