Re: [PAHOLE v5 0/5] support for DW_TAG_GNU_annotation and fixes

Alan Maguire <[email protected]> Fri, 19 Jun 2026 13:17:04 +0100
Newsgroups org.kernel.vger.dwarves,org.kernel.vger.bpf
Message-ID <[email protected]>
On 18/06/2026 01:57, Vineet Gupta wrote:
> Hi,
> 
> This series handles gcc generated DW_TAG_GNU_annotation with the end
> goal to finally enable CONFIG_PAHOLE_HAS_BTF_TAG for gcc kerenel builds.
> 
> Patches 1/5 and 5/5 are newly introduced in v5 per Alan's ask.
> 
> P.S.: I've optimistically included Reviewed-by/Acked-by from Emil and
> Yonghong respectively on v4 [4] but those were before additional changes
> in v5 from Alan for a few things. Please let me know if that's no longer
> true.
> 
> [4] https://lore.kernel.org/bpf/[email protected]/
>

series applied, along with CI change to support [1]. Thank you!

Alan

[1] https://lore.kernel.org/dwarves/[email protected]/T/#r0d979ca6aa79a4586b75223ec51a54e7be1d74f8

 
> Thx,
> -Vineet
> 
> Alan Maguire (2):
>   btf_loader: Handle decl tag component_idx for parameters
>   tests: Add btf_type_tag ordering test
> 
> Vineet Gupta (3):
>   dwarf_loader: Extract die__add_btf_type_tag() helper [NFC]
>   dwarf_loader: Add support for DW_TAG_GNU_annotation
>   tests: Support GCC in pfunct-btf-decl-tags test
> 
>  btf_encoder.c                 |   1 +
>  btf_loader.c                  |  46 ++++++++-
>  dutil.h                       |  11 ++
>  dwarf_loader.c                | 185 +++++++++++++++++++++++++++-------
>  dwarves.h                     |   2 +-
>  dwarves_fprintf.c             |  32 ++++--
>  tests/btf_type_tag_order.sh   | 179 ++++++++++++++++++++++++++++++++
>  tests/pfunct-btf-decl-tags.sh |  93 ++++++++++++-----
>  8 files changed, 478 insertions(+), 71 deletions(-)
>  create mode 100755 tests/btf_type_tag_order.sh
>