Commit 146bf811 authored by Andrii Nakryiko's avatar Andrii Nakryiko Committed by Alexei Starovoitov

libbpf: remove most other deprecated high-level APIs

Remove a bunch of high-level bpf_object/bpf_map/bpf_program related
APIs. All the APIs related to private per-object/map/prog state,
program preprocessing callback, and generally everything multi-instance
related is removed in a separate patch.
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220627211527.2245459-9-andrii@kernel.orgSigned-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 9a590538
This diff is collapsed.
This diff is collapsed.
...@@ -3,13 +3,9 @@ LIBBPF_0.0.1 { ...@@ -3,13 +3,9 @@ LIBBPF_0.0.1 {
bpf_btf_get_fd_by_id; bpf_btf_get_fd_by_id;
bpf_map__btf_key_type_id; bpf_map__btf_key_type_id;
bpf_map__btf_value_type_id; bpf_map__btf_value_type_id;
bpf_map__def;
bpf_map__fd; bpf_map__fd;
bpf_map__is_offload_neutral;
bpf_map__name; bpf_map__name;
bpf_map__next;
bpf_map__pin; bpf_map__pin;
bpf_map__prev;
bpf_map__priv; bpf_map__priv;
bpf_map__reuse_fd; bpf_map__reuse_fd;
bpf_map__set_ifindex; bpf_map__set_ifindex;
...@@ -29,21 +25,15 @@ LIBBPF_0.0.1 { ...@@ -29,21 +25,15 @@ LIBBPF_0.0.1 {
bpf_object__btf_fd; bpf_object__btf_fd;
bpf_object__close; bpf_object__close;
bpf_object__find_map_by_name; bpf_object__find_map_by_name;
bpf_object__find_map_by_offset;
bpf_object__find_program_by_title;
bpf_object__kversion; bpf_object__kversion;
bpf_object__load; bpf_object__load;
bpf_object__name; bpf_object__name;
bpf_object__next;
bpf_object__open; bpf_object__open;
bpf_object__open_buffer;
bpf_object__open_xattr;
bpf_object__pin; bpf_object__pin;
bpf_object__pin_maps; bpf_object__pin_maps;
bpf_object__pin_programs; bpf_object__pin_programs;
bpf_object__priv; bpf_object__priv;
bpf_object__set_priv; bpf_object__set_priv;
bpf_object__unload;
bpf_object__unpin_maps; bpf_object__unpin_maps;
bpf_object__unpin_programs; bpf_object__unpin_programs;
bpf_prog_attach; bpf_prog_attach;
...@@ -53,35 +43,15 @@ LIBBPF_0.0.1 { ...@@ -53,35 +43,15 @@ LIBBPF_0.0.1 {
bpf_prog_get_next_id; bpf_prog_get_next_id;
bpf_prog_query; bpf_prog_query;
bpf_program__fd; bpf_program__fd;
bpf_program__is_kprobe;
bpf_program__is_perf_event;
bpf_program__is_raw_tracepoint;
bpf_program__is_sched_act;
bpf_program__is_sched_cls;
bpf_program__is_socket_filter;
bpf_program__is_tracepoint;
bpf_program__is_xdp;
bpf_program__load;
bpf_program__next;
bpf_program__nth_fd; bpf_program__nth_fd;
bpf_program__pin; bpf_program__pin;
bpf_program__pin_instance; bpf_program__pin_instance;
bpf_program__prev;
bpf_program__priv; bpf_program__priv;
bpf_program__set_expected_attach_type; bpf_program__set_expected_attach_type;
bpf_program__set_ifindex; bpf_program__set_ifindex;
bpf_program__set_kprobe;
bpf_program__set_perf_event;
bpf_program__set_prep; bpf_program__set_prep;
bpf_program__set_priv; bpf_program__set_priv;
bpf_program__set_raw_tracepoint;
bpf_program__set_sched_act;
bpf_program__set_sched_cls;
bpf_program__set_socket_filter;
bpf_program__set_tracepoint;
bpf_program__set_type; bpf_program__set_type;
bpf_program__set_xdp;
bpf_program__title;
bpf_program__unload; bpf_program__unload;
bpf_program__unpin; bpf_program__unpin;
bpf_program__unpin_instance; bpf_program__unpin_instance;
...@@ -110,7 +80,6 @@ LIBBPF_0.0.1 { ...@@ -110,7 +80,6 @@ LIBBPF_0.0.1 {
LIBBPF_0.0.2 { LIBBPF_0.0.2 {
global: global:
bpf_map__resize;
bpf_map_lookup_elem_flags; bpf_map_lookup_elem_flags;
bpf_object__btf; bpf_object__btf;
bpf_object__find_map_fd_by_name; bpf_object__find_map_fd_by_name;
...@@ -129,7 +98,6 @@ LIBBPF_0.0.3 { ...@@ -129,7 +98,6 @@ LIBBPF_0.0.3 {
LIBBPF_0.0.4 { LIBBPF_0.0.4 {
global: global:
bpf_link__destroy; bpf_link__destroy;
bpf_object__load_xattr;
bpf_program__attach_kprobe; bpf_program__attach_kprobe;
bpf_program__attach_perf_event; bpf_program__attach_perf_event;
bpf_program__attach_raw_tracepoint; bpf_program__attach_raw_tracepoint;
...@@ -158,9 +126,6 @@ LIBBPF_0.0.6 { ...@@ -158,9 +126,6 @@ LIBBPF_0.0.6 {
bpf_program__attach_trace; bpf_program__attach_trace;
bpf_program__get_expected_attach_type; bpf_program__get_expected_attach_type;
bpf_program__get_type; bpf_program__get_type;
bpf_program__is_tracing;
bpf_program__set_tracing;
bpf_program__size;
btf__find_by_name_kind; btf__find_by_name_kind;
libbpf_find_vmlinux_btf_id; libbpf_find_vmlinux_btf_id;
} LIBBPF_0.0.5; } LIBBPF_0.0.5;
...@@ -182,10 +147,6 @@ LIBBPF_0.0.7 { ...@@ -182,10 +147,6 @@ LIBBPF_0.0.7 {
bpf_object__open_skeleton; bpf_object__open_skeleton;
bpf_program__attach; bpf_program__attach;
bpf_program__name; bpf_program__name;
bpf_program__is_extension;
bpf_program__is_struct_ops;
bpf_program__set_extension;
bpf_program__set_struct_ops;
btf__align_of; btf__align_of;
libbpf_find_kernel_btf; libbpf_find_kernel_btf;
} LIBBPF_0.0.6; } LIBBPF_0.0.6;
...@@ -204,9 +165,7 @@ LIBBPF_0.0.8 { ...@@ -204,9 +165,7 @@ LIBBPF_0.0.8 {
bpf_prog_attach_opts; bpf_prog_attach_opts;
bpf_program__attach_cgroup; bpf_program__attach_cgroup;
bpf_program__attach_lsm; bpf_program__attach_lsm;
bpf_program__is_lsm;
bpf_program__set_attach_target; bpf_program__set_attach_target;
bpf_program__set_lsm;
} LIBBPF_0.0.7; } LIBBPF_0.0.7;
LIBBPF_0.0.9 { LIBBPF_0.0.9 {
...@@ -244,9 +203,7 @@ LIBBPF_0.1.0 { ...@@ -244,9 +203,7 @@ LIBBPF_0.1.0 {
bpf_map__value_size; bpf_map__value_size;
bpf_program__attach_xdp; bpf_program__attach_xdp;
bpf_program__autoload; bpf_program__autoload;
bpf_program__is_sk_lookup;
bpf_program__set_autoload; bpf_program__set_autoload;
bpf_program__set_sk_lookup;
btf__parse; btf__parse;
btf__parse_raw; btf__parse_raw;
btf__pointer_size; btf__pointer_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment