mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-09 12:20:13 +08:00
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
This commit is contained in:
1 parent
f7cee4152f
commit
ba81a5b778
5 files changed
+2
-10
No files matched your search
@@ -7263,8 +7263,6 @@ static int bpf_object_unload(struct bpf_object *obj)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int bpf_object__unload(struct bpf_object *obj) __attribute__((alias("bpf_object_unload")));
|
||||
|
||||
static int bpf_object__sanitize_maps(struct bpf_object *obj)
|
||||
{
|
||||
struct bpf_map *m;
|
||||
|
||||
Reference in new issue
Block a user