OSDN Git Service

libbpf: Move few APIs from 0.4 to 0.5 version
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 3 Jun 2021 00:40:23 +0000 (17:40 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 3 Jun 2021 13:50:05 +0000 (15:50 +0200)
Official libbpf 0.4 release doesn't include three APIs that were tentatively
put into 0.4 section. Fix libbpf.map and move these three APIs:

  - bpf_map__initial_value;
  - bpf_map_lookup_and_delete_elem_flags;
  - bpf_object__gen_loader.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210603004026.2698513-2-andrii@kernel.org
tools/lib/bpf/libbpf.map

index bbe99b1..944c99d 100644 (file)
@@ -359,10 +359,7 @@ LIBBPF_0.4.0 {
                bpf_linker__finalize;
                bpf_linker__free;
                bpf_linker__new;
-               bpf_map__initial_value;
                bpf_map__inner_map;
-               bpf_map_lookup_and_delete_elem_flags;
-               bpf_object__gen_loader;
                bpf_object__set_kversion;
                bpf_tc_attach;
                bpf_tc_detach;
@@ -373,5 +370,8 @@ LIBBPF_0.4.0 {
 
 LIBBPF_0.5.0 {
        global:
+               bpf_map__initial_value;
+               bpf_map_lookup_and_delete_elem_flags;
+               bpf_object__gen_loader;
                libbpf_set_strict_mode;
 } LIBBPF_0.4.0;