aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIhor Solodrai <[email protected]>2025-04-14 18:59:18 +0000
committerMartin KaFai Lau <[email protected]>2025-04-15 18:17:50 +0000
commit21cb33c7e06533229df01c05248edbd23cefc89c (patch)
tree7d3a69b31ca4502aca54c057ab47f30e4326bb6b
parentselftest/bpf/benchs: Remove duplicate sys/types.h header (diff)
downloadkernel-21cb33c7e06533229df01c05248edbd23cefc89c.tar.gz
kernel-21cb33c7e06533229df01c05248edbd23cefc89c.zip
kbuild, bpf: Enable --btf_features=attributes
pahole v1.30 has a BTF encoding feature for arbitrary attributes, used in particular for tagging bpf_arena_alloc_pages and bpf_arena_free_pages BPF kfuncs [1][2]. Enable it for the kernel build. [1] https://lore.kernel.org/bpf/[email protected]/ [2] https://lore.kernel.org/bpf/[email protected]/ Signed-off-by: Ihor Solodrai <[email protected]> Signed-off-by: Martin KaFai Lau <[email protected]> Tested-by: Eduard Zingerman <[email protected]> Link: https://patch.msgid.link/[email protected]
-rw-r--r--scripts/Makefile.btf2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile.btf b/scripts/Makefile.btf
index fbaaec2187e5..db76335dd917 100644
--- a/scripts/Makefile.btf
+++ b/scripts/Makefile.btf
@@ -23,6 +23,8 @@ else
# Switch to using --btf_features for v1.26 and later.
pahole-flags-$(call test-ge, $(pahole-ver), 126) = -j$(JOBS) --btf_features=encode_force,var,float,enum64,decl_tag,type_tag,optimized_func,consistent_func,decl_tag_kfuncs
+pahole-flags-$(call test-ge, $(pahole-ver), 130) += --btf_features=attributes
+
ifneq ($(KBUILD_EXTMOD),)
module-pahole-flags-$(call test-ge, $(pahole-ver), 128) += --btf_features=distilled_base
endif