This patch series implements emitting appropriate BTF type tags for argument and return types of kfuncs marked with KF_ARENA_* flags. For additional context see the description of BPF patch "bpf: define KF_ARENA_* flags for bpf_arena kfuncs" [1]. The feature depends on recent changes in libbpf [2]. [1] https://lore.kernel.org/bpf/20250206003148.2308659-1-ihor.solodrai@xxxxxxxxx/ [2] https://lore.kernel.org/bpf/20250130201239.1429648-1-ihor.solodrai@xxxxxxxxx/ Ihor Solodrai (3): btf_encoder: collect kfuncs info in btf_encoder__new btf_encoder: emit type tags for bpf_arena pointers pahole: introduce --btf_feature=attributes btf_encoder.c | 190 ++++++++++++++++++++++++++++++++++++++++++++------ dwarves.h | 1 + pahole.c | 11 +++ 3 files changed, 179 insertions(+), 23 deletions(-) -- 2.48.1