diff options
| author | Andrii Nakryiko <[email protected]> | 2022-08-16 00:19:28 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-08-17 20:42:56 +0000 |
| commit | abf84b64e36b175c9c4dd4ecbad2af4329c00041 (patch) | |
| tree | 85b3c26128fb7063a19ae071ea52da3e2b76b64d /tools/lib/bpf/libbpf_legacy.h | |
| parent | libbpf: Streamline bpf_attr and perf_event_attr initialization (diff) | |
| download | kernel-abf84b64e36b175c9c4dd4ecbad2af4329c00041.tar.gz kernel-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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Hao Luo <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
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); |
