kbuild, bpf: Enable --btf_features=attributes
authorIhor Solodrai <ihor.solodrai@linux.dev>
Mon, 14 Apr 2025 18:59:18 +0000 (11:59 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Tue, 15 Apr 2025 18:17:50 +0000 (11:17 -0700)
commit21cb33c7e06533229df01c05248edbd23cefc89c
tree7d3a69b31ca4502aca54c057ab47f30e4326bb6b
parent7d0b43b68d1cd4256de60b73249397db3c4e16d6
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
scripts/Makefile.btf