Skip to content

Commit 21cb33c

Browse files
theihorMartin KaFai Lau
authored andcommitted
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]
1 parent 7d0b43b commit 21cb33c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/Makefile.btf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ else
2323
# Switch to using --btf_features for v1.26 and later.
2424
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
2525

26+
pahole-flags-$(call test-ge, $(pahole-ver), 130) += --btf_features=attributes
27+
2628
ifneq ($(KBUILD_EXTMOD),)
2729
module-pahole-flags-$(call test-ge, $(pahole-ver), 128) += --btf_features=distilled_base
2830
endif

0 commit comments

Comments
 (0)