diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-08-16 02:19:28 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-08-17 22:42:56 +0200 |
commit | abf84b64e36b175c9c4dd4ecbad2af4329c00041 (patch) | |
tree | 85b3c26128fb7063a19ae071ea52da3e2b76b64d /tools/lib/bpf/libbpf_legacy.h | |
parent | libbpf: Streamline bpf_attr and perf_event_attr initialization (diff) | |
download | linux-abf84b64e36b175c9c4dd4ecbad2af4329c00041.tar.xz linux-abf84b64e36b175c9c4dd4ecbad2af4329c00041.zip |
libbpf: Clean up deprecated and legacy aliases
Remove three missed deprecated APIs that were aliased to new APIs:
bpf_object__unload, bpf_prog_attach_xattr and btf__load.
Also move legacy API libbpf_find_kernel_btf (aliased to
btf__load_vmlinux_btf) into libbpf_legacy.h.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Hao Luo <haoluo@google.com>
Link: https://lore.kernel.org/bpf/20220816001929.369487-4-andrii@kernel.org
Diffstat (limited to 'tools/lib/bpf/libbpf_legacy.h')
-rw-r--r-- | tools/lib/bpf/libbpf_legacy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf_legacy.h b/tools/lib/bpf/libbpf_legacy.h index 5b7e0155db6a..1e1be467bede 100644 --- a/tools/lib/bpf/libbpf_legacy.h +++ b/tools/lib/bpf/libbpf_legacy.h @@ -125,6 +125,8 @@ struct bpf_map; struct btf; struct btf_ext; +LIBBPF_API struct btf *libbpf_find_kernel_btf(void); + LIBBPF_API enum bpf_prog_type bpf_program__get_type(const struct bpf_program *prog); LIBBPF_API enum bpf_attach_type bpf_program__get_expected_attach_type(const struct bpf_program *prog); LIBBPF_API const char *bpf_map__get_pin_path(const struct bpf_map *map); |