From: Alan Maguire <almagui@kernel.org>
To: Yonghong Song <yonghong.song@linux.dev>, bpf@vger.kernel.org
Cc: Alexei Starovoitov <ast@kernel.org>,
Andrii Nakryiko <andrii@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Eduard Zingerman <eddyz87@gmail.com>,
kernel-team@fb.com
Subject: Re: [PATCH bpf-next 1/2] lib/Kconfig.debug: Set the minimum required pahole version to v1.24
Date: Mon, 23 Nov 2026 23:19:10 +0000 [thread overview]
Message-ID: <16b4f479-0830-4a90-b32a-d360aca1dc45@kernel.org> (raw)
In-Reply-To: <20261123231053.2538168-1-yonghong.song@linux.dev>
On 11/23/26 11:10 PM, Yonghong Song wrote:
> Commit 2c1ccd9a1d78 ("docs: changes.rst: restore pahole 1.26 minimum
> (regressed by sort)") raised the minimal pahole version in the
> requirements table of Documentation/process/changes.rst to v1.26, since
> kfuncs with KF_IMPLICIT_ARGS needed the decl_tag_kfuncs feature of
> pahole v1.26. Commit 692393104909 ("resolve_btfids: Emit bpf_kfunc and
> bpf_fastcall decl tags") removed that need, as resolve_btfids now emits
> the kfunc decl tags itself. CONFIG_DEBUG_INFO_BTF, on the other hand,
> still accepts pahole v1.22.
>
> Set the minimal version to v1.24, so that the kflag of an enum in
> vmlinux and module BTF is meaningful: 0 for an unsigned enum and 1 for a
> signed enum. pahole records the signedness of an enum in the kflag since
> v1.24. With an older pahole, every enum has the kflag 0, signed or not.
>
> Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Acked-by: Alan Maguire <almagui@kernel.org>
> ---
> Documentation/process/changes.rst | 4 ++--
> lib/Kconfig.debug | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/process/changes.rst b/Documentation/process/changes.rst
> index 28f2ca63318e..a292f31f1891 100644
> --- a/Documentation/process/changes.rst
> +++ b/Documentation/process/changes.rst
> @@ -53,7 +53,7 @@ mcelog 0.6 mcelog --version
> mkimage (optional) 2017.01 mkimage --version
> nfs-utils 1.0.5 showmount --version
> openssl & libcrypto 1.0.0 openssl version
> -pahole 1.26 pahole --version
> +pahole 1.24 pahole --version
> pcmciautils 004 pccardctl -V
> pigz (optional) 2.4 pigz --version
> PPP 2.4.0 pppd --version
> @@ -146,7 +146,7 @@ pahole
>
> Since Linux 5.2, if CONFIG_DEBUG_INFO_BTF is selected, the build system
> generates BTF (BPF Type Format) from DWARF in vmlinux, a bit later from kernel
> -modules as well. This requires pahole v1.22 or later.
> +modules as well. This requires pahole v1.24 or later.
>
> It is found in the 'dwarves' or 'pahole' distro packages or from
> https://fedorapeople.org/~acme/dwarves/.
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index 2d22638ec13a..9479034afe5a 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -400,12 +400,12 @@ config DEBUG_INFO_BTF
> depends on !DEBUG_INFO_SPLIT && !DEBUG_INFO_REDUCED
> depends on !GCC_PLUGIN_RANDSTRUCT || COMPILE_TEST
> depends on BPF_SYSCALL
> - depends on PAHOLE_VERSION >= 122
> + depends on PAHOLE_VERSION >= 124
> # pahole uses elfutils, which does not have support for Hexagon relocations
> depends on !HEXAGON
> help
> Generate deduplicated BTF type information from DWARF debug info.
> - Turning this on requires pahole v1.22 or later, which will convert
> + Turning this on requires pahole v1.24 or later, which will convert
> DWARF type info into equivalent deduplicated BTF type info.
>
> config PAHOLE_HAS_BTF_TAG
prev parent reply other threads:[~2026-11-23 23:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 23:10 [PATCH bpf-next 1/2] lib/Kconfig.debug: Set the minimum required pahole version to v1.24 Yonghong Song
2026-11-23 23:10 ` [PATCH bpf-next 2/2] kbuild, bpf: Remove pahole version checks below v1.24 Yonghong Song
2026-11-23 23:18 ` Alan Maguire
2026-11-23 23:19 ` Alan Maguire [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16b4f479-0830-4a90-b32a-d360aca1dc45@kernel.org \
--to=almagui@kernel.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=kernel-team@fb.com \
--cc=yonghong.song@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox