* [PATCH bpf-next 1/4] libbpf: move few APIs from 0.4 to 0.5 version
2021-06-03 0:40 [PATCH bpf-next 0/4] Few small libbpf and selftests/bpf fixes Andrii Nakryiko
@ 2021-06-03 0:40 ` Andrii Nakryiko
2021-06-03 0:40 ` [PATCH bpf-next 2/4] libbpf: refactor header installation portions of Makefile Andrii Nakryiko
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Andrii Nakryiko @ 2021-06-03 0:40 UTC (permalink / raw)
To: bpf, netdev, ast, daniel; +Cc: andrii, kernel-team
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>
---
tools/lib/bpf/libbpf.map | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map
index bbe99b1db1a9..944c99d1ded3 100644
--- a/tools/lib/bpf/libbpf.map
+++ b/tools/lib/bpf/libbpf.map
@@ -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;
--
2.30.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH bpf-next 2/4] libbpf: refactor header installation portions of Makefile
2021-06-03 0:40 [PATCH bpf-next 0/4] Few small libbpf and selftests/bpf fixes Andrii Nakryiko
2021-06-03 0:40 ` [PATCH bpf-next 1/4] libbpf: move few APIs from 0.4 to 0.5 version Andrii Nakryiko
@ 2021-06-03 0:40 ` Andrii Nakryiko
2021-06-03 0:40 ` [PATCH bpf-next 3/4] libbpf: install skel_internal.h header used from light skeletons Andrii Nakryiko
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Andrii Nakryiko @ 2021-06-03 0:40 UTC (permalink / raw)
To: bpf, netdev, ast, daniel; +Cc: andrii, kernel-team
As we gradually get more headers that have to be installed, it's quite
annoying to copy/paste long $(call) commands. So extract that logic and do
a simple $(foreach) over the list of headers.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
---
tools/lib/bpf/Makefile | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile
index 15420303cf06..d1b909e005dc 100644
--- a/tools/lib/bpf/Makefile
+++ b/tools/lib/bpf/Makefile
@@ -223,19 +223,14 @@ install_lib: all_cmd
$(call do_install_mkdir,$(libdir_SQ)); \
cp -fpR $(LIB_FILE) $(DESTDIR)$(libdir_SQ)
+INSTALL_HEADERS = bpf.h libbpf.h btf.h libbpf_common.h libbpf_legacy.h xsk.h \
+ bpf_helpers.h $(BPF_HELPER_DEFS) bpf_tracing.h \
+ bpf_endian.h bpf_core_read.h
+
install_headers: $(BPF_HELPER_DEFS)
- $(call QUIET_INSTALL, headers) \
- $(call do_install,bpf.h,$(prefix)/include/bpf,644); \
- $(call do_install,libbpf.h,$(prefix)/include/bpf,644); \
- $(call do_install,btf.h,$(prefix)/include/bpf,644); \
- $(call do_install,libbpf_common.h,$(prefix)/include/bpf,644); \
- $(call do_install,libbpf_legacy.h,$(prefix)/include/bpf,644); \
- $(call do_install,xsk.h,$(prefix)/include/bpf,644); \
- $(call do_install,bpf_helpers.h,$(prefix)/include/bpf,644); \
- $(call do_install,$(BPF_HELPER_DEFS),$(prefix)/include/bpf,644); \
- $(call do_install,bpf_tracing.h,$(prefix)/include/bpf,644); \
- $(call do_install,bpf_endian.h,$(prefix)/include/bpf,644); \
- $(call do_install,bpf_core_read.h,$(prefix)/include/bpf,644);
+ $(call QUIET_INSTALL, headers) \
+ $(foreach hdr,$(INSTALL_HEADERS), \
+ $(call do_install,$(hdr),$(prefix)/include/bpf,644);)
install_pkgconfig: $(PC_FILE)
$(call QUIET_INSTALL, $(PC_FILE)) \
--
2.30.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH bpf-next 0/4] Few small libbpf and selftests/bpf fixes
2021-06-03 0:40 [PATCH bpf-next 0/4] Few small libbpf and selftests/bpf fixes Andrii Nakryiko
` (3 preceding siblings ...)
2021-06-03 0:40 ` [PATCH bpf-next 4/4] selftests/bpf: add xdp_redirect_multi into .gitignore Andrii Nakryiko
@ 2021-06-03 14:00 ` patchwork-bot+netdevbpf
4 siblings, 0 replies; 6+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-06-03 14:00 UTC (permalink / raw)
To: Andrii Nakryiko; +Cc: bpf, netdev, ast, daniel, kernel-team
Hello:
This series was applied to bpf/bpf-next.git (refs/heads/master):
On Wed, 2 Jun 2021 17:40:22 -0700 you wrote:
> Fix few small issues in libbpf and selftests/bpf:
> - fix up libbpf.map and move few APIs that didn't make it into final 0.4
> release;
> - install skel_internal.h which is used by light skeleton;
> - fix .gitignore for xdp_redirect_multi.
>
> Andrii Nakryiko (4):
> libbpf: move few APIs from 0.4 to 0.5 version
> libbpf: refactor header installation portions of Makefile
> libbpf: install skel_internal.h header used from light skeletons
> selftests/bpf: add xdp_redirect_multi into .gitignore
>
> [...]
Here is the summary with links:
- [bpf-next,1/4] libbpf: move few APIs from 0.4 to 0.5 version
https://git.kernel.org/bpf/bpf-next/c/16cac0060680
- [bpf-next,2/4] libbpf: refactor header installation portions of Makefile
https://git.kernel.org/bpf/bpf-next/c/232c9e8bd5eb
- [bpf-next,3/4] libbpf: install skel_internal.h header used from light skeletons
https://git.kernel.org/bpf/bpf-next/c/7d8a819dd316
- [bpf-next,4/4] selftests/bpf: add xdp_redirect_multi into .gitignore
https://git.kernel.org/bpf/bpf-next/c/56b8b7f9533b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 6+ messages in thread