Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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/20250130201239.1429648-1-ihor.solodrai@linux.dev/
[2] https://lore.kernel.org/bpf/20250228194654.1022535-1-ihor.solodrai@linux.dev/

Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Tested-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://patch.msgid.link/20250414185918.538195-1-ihor.solodrai@linux.dev

authored by

Ihor Solodrai and committed by
Martin KaFai Lau
21cb33c7 7d0b43b6

+2
+2
scripts/Makefile.btf
··· 23 23 # Switch to using --btf_features for v1.26 and later. 24 24 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 25 25 26 + pahole-flags-$(call test-ge, $(pahole-ver), 130) += --btf_features=attributes 27 + 26 28 ifneq ($(KBUILD_EXTMOD),) 27 29 module-pahole-flags-$(call test-ge, $(pahole-ver), 128) += --btf_features=distilled_base 28 30 endif