* [PATCH bpf-next 1/2] lib/Kconfig.debug: Set the minimum required pahole version to v1.24
@ 2026-11-23 23:10 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:19 ` [PATCH bpf-next 1/2] lib/Kconfig.debug: Set the minimum required pahole version to v1.24 Alan Maguire
0 siblings, 2 replies; 7+ messages in thread
From: Yonghong Song @ 2026-11-23 23:10 UTC (permalink / raw)
To: bpf
Cc: Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann,
Eduard Zingerman, kernel-team
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>
---
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
--
2.53.1-Meta
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH bpf-next 2/2] kbuild, bpf: Remove pahole version checks below v1.24
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 ` Yonghong Song
2026-11-23 23:18 ` Alan Maguire
2026-11-23 23:41 ` bot+bpf-ci
2026-11-23 23:19 ` [PATCH bpf-next 1/2] lib/Kconfig.debug: Set the minimum required pahole version to v1.24 Alan Maguire
1 sibling, 2 replies; 7+ messages in thread
From: Yonghong Song @ 2026-11-23 23:10 UTC (permalink / raw)
To: bpf
Cc: Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann,
Eduard Zingerman, kernel-team
The previous patch makes CONFIG_DEBUG_INFO_BTF require pahole v1.24, so
the Kconfig checks for an older pahole always pass with
CONFIG_DEBUG_INFO_BTF.
Remove CONFIG_PAHOLE_HAS_LANG_EXCLUDE (pahole v1.24), which is always
set with CONFIG_DEBUG_INFO_BTF. Drop it from the dependency of
CONFIG_RUST on !CONFIG_DEBUG_INFO_BTF, and always pass
--lang_exclude=rust in scripts/Makefile.btf, which is only included
with CONFIG_DEBUG_INFO_BTF.
CONFIG_PAHOLE_HAS_BTF_TAG (pahole v1.23) is still needed, since
btf_type_tag is only used with clang, but it no longer needs the pahole
version. Every user of it also checks CONFIG_DEBUG_INFO_BTF, so make it
depend on CONFIG_CC_IS_CLANG only.
The pahole flags and the resulting config are unchanged, except that
CONFIG_PAHOLE_HAS_LANG_EXCLUDE is gone.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
---
init/Kconfig | 2 +-
lib/Kconfig.debug | 12 +-----------
scripts/Makefile.btf | 2 +-
3 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/init/Kconfig b/init/Kconfig
index c8a7cfa60a6e..ca7f20462d0c 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -2065,7 +2065,7 @@ config RUST
depends on !MODVERSIONS || GENDWARFKSYMS
depends on !GCC_PLUGIN_RANDSTRUCT
depends on !RANDSTRUCT
- depends on !DEBUG_INFO_BTF || (PAHOLE_HAS_LANG_EXCLUDE && !LTO)
+ depends on !DEBUG_INFO_BTF || !LTO
depends on !CFI || HAVE_CFI_ICALL_NORMALIZE_INTEGERS_RUSTC
select CFI_ICALL_NORMALIZE_INTEGERS if CFI
depends on !KASAN || CC_IS_CLANG
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 9479034afe5a..c6123d52576e 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -409,22 +409,12 @@ config DEBUG_INFO_BTF
DWARF type info into equivalent deduplicated BTF type info.
config PAHOLE_HAS_BTF_TAG
- def_bool PAHOLE_VERSION >= 123
- depends on CC_IS_CLANG
+ def_bool CC_IS_CLANG
help
Decide whether pahole emits btf_tag attributes (btf_type_tag and
btf_decl_tag) or not. Currently only clang compiler implements
these attributes, so make the config depend on CC_IS_CLANG.
-config PAHOLE_HAS_LANG_EXCLUDE
- def_bool PAHOLE_VERSION >= 124
- help
- Support for the --lang_exclude flag which makes pahole exclude
- compilation units from the supplied language. Used in Kbuild to
- omit Rust CUs which are not supported in version 1.24 of pahole,
- otherwise it would emit malformed kernel and module binaries when
- using DEBUG_INFO_BTF_MODULES.
-
config PAHOLE_HAS_INLINE
def_bool PAHOLE_VERSION >= 132
help
diff --git a/scripts/Makefile.btf b/scripts/Makefile.btf
index 02ff1702e1e8..8cd8c88d4580 100644
--- a/scripts/Makefile.btf
+++ b/scripts/Makefile.btf
@@ -20,7 +20,7 @@ pahole-flags-$(call test-ge, $(pahole-ver), 131) += --btf_features=layout
endif
-pahole-flags-$(CONFIG_PAHOLE_HAS_LANG_EXCLUDE) += --lang_exclude=rust
+pahole-flags-y += --lang_exclude=rust
btf-inline := $(CONFIG_DEBUG_INFO_BTF_INLINE)
ifneq ($(btf-inline),)
--
2.53.1-Meta
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH bpf-next 2/2] kbuild, bpf: Remove pahole version checks below v1.24
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-24 2:36 ` Yonghong Song
2026-11-23 23:41 ` bot+bpf-ci
1 sibling, 1 reply; 7+ messages in thread
From: Alan Maguire @ 2026-11-23 23:18 UTC (permalink / raw)
To: Yonghong Song, bpf
Cc: Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann,
Eduard Zingerman, kernel-team
On 11/23/26 11:10 PM, Yonghong Song wrote:
> The previous patch makes CONFIG_DEBUG_INFO_BTF require pahole v1.24, so
> the Kconfig checks for an older pahole always pass with
> CONFIG_DEBUG_INFO_BTF.
>
> Remove CONFIG_PAHOLE_HAS_LANG_EXCLUDE (pahole v1.24), which is always
> set with CONFIG_DEBUG_INFO_BTF. Drop it from the dependency of
> CONFIG_RUST on !CONFIG_DEBUG_INFO_BTF, and always pass
> --lang_exclude=rust in scripts/Makefile.btf, which is only included
> with CONFIG_DEBUG_INFO_BTF.
>
> CONFIG_PAHOLE_HAS_BTF_TAG (pahole v1.23) is still needed, since
> btf_type_tag is only used with clang, but it no longer needs the pahole
> version. Every user of it also checks CONFIG_DEBUG_INFO_BTF, so make it
> depend on CONFIG_CC_IS_CLANG only.
>
> The pahole flags and the resulting config are unchanged, except that
> CONFIG_PAHOLE_HAS_LANG_EXCLUDE is gone.
>
> Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
one suggestion below, but
Acked-by: Alan Maguire <almagui@kernel.org>
> ---
> init/Kconfig | 2 +-
> lib/Kconfig.debug | 12 +-----------
> scripts/Makefile.btf | 2 +-
> 3 files changed, 3 insertions(+), 13 deletions(-)
>
> diff --git a/init/Kconfig b/init/Kconfig
> index c8a7cfa60a6e..ca7f20462d0c 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -2065,7 +2065,7 @@ config RUST
> depends on !MODVERSIONS || GENDWARFKSYMS
> depends on !GCC_PLUGIN_RANDSTRUCT
> depends on !RANDSTRUCT
> - depends on !DEBUG_INFO_BTF || (PAHOLE_HAS_LANG_EXCLUDE && !LTO)
> + depends on !DEBUG_INFO_BTF || !LTO
> depends on !CFI || HAVE_CFI_ICALL_NORMALIZE_INTEGERS_RUSTC
> select CFI_ICALL_NORMALIZE_INTEGERS if CFI
> depends on !KASAN || CC_IS_CLANG
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index 9479034afe5a..c6123d52576e 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -409,22 +409,12 @@ config DEBUG_INFO_BTF
> DWARF type info into equivalent deduplicated BTF type info.
>
> config PAHOLE_HAS_BTF_TAG
> - def_bool PAHOLE_VERSION >= 123
> - depends on CC_IS_CLANG
> + def_bool CC_IS_CLANG
> help
> Decide whether pahole emits btf_tag attributes (btf_type_tag and
> btf_decl_tag) or not. Currently only clang compiler implements
> these attributes, so make the config depend on CC_IS_CLANG.
>
While we're in the area, should we fix this to reflect that gcc has BTF tag
support now?
> -config PAHOLE_HAS_LANG_EXCLUDE
> - def_bool PAHOLE_VERSION >= 124
> - help
> - Support for the --lang_exclude flag which makes pahole exclude
> - compilation units from the supplied language. Used in Kbuild to
> - omit Rust CUs which are not supported in version 1.24 of pahole,
> - otherwise it would emit malformed kernel and module binaries when
> - using DEBUG_INFO_BTF_MODULES.
> -
> config PAHOLE_HAS_INLINE
> def_bool PAHOLE_VERSION >= 132
> help
> diff --git a/scripts/Makefile.btf b/scripts/Makefile.btf
> index 02ff1702e1e8..8cd8c88d4580 100644
> --- a/scripts/Makefile.btf
> +++ b/scripts/Makefile.btf
> @@ -20,7 +20,7 @@ pahole-flags-$(call test-ge, $(pahole-ver), 131) += --btf_features=layout
>
> endif
>
> -pahole-flags-$(CONFIG_PAHOLE_HAS_LANG_EXCLUDE) += --lang_exclude=rust
> +pahole-flags-y += --lang_exclude=rust
>
> btf-inline := $(CONFIG_DEBUG_INFO_BTF_INLINE)
> ifneq ($(btf-inline),)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH bpf-next 2/2] kbuild, bpf: Remove pahole version checks below v1.24
2026-11-23 23:18 ` Alan Maguire
@ 2026-11-24 2:36 ` Yonghong Song
0 siblings, 0 replies; 7+ messages in thread
From: Yonghong Song @ 2026-11-24 2:36 UTC (permalink / raw)
To: Alan Maguire, bpf
Cc: Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann,
Eduard Zingerman, kernel-team
On 11/23/26 3:18 PM, Alan Maguire wrote:
> On 11/23/26 11:10 PM, Yonghong Song wrote:
>> The previous patch makes CONFIG_DEBUG_INFO_BTF require pahole v1.24, so
>> the Kconfig checks for an older pahole always pass with
>> CONFIG_DEBUG_INFO_BTF.
>>
>> Remove CONFIG_PAHOLE_HAS_LANG_EXCLUDE (pahole v1.24), which is always
>> set with CONFIG_DEBUG_INFO_BTF. Drop it from the dependency of
>> CONFIG_RUST on !CONFIG_DEBUG_INFO_BTF, and always pass
>> --lang_exclude=rust in scripts/Makefile.btf, which is only included
>> with CONFIG_DEBUG_INFO_BTF.
>>
>> CONFIG_PAHOLE_HAS_BTF_TAG (pahole v1.23) is still needed, since
>> btf_type_tag is only used with clang, but it no longer needs the pahole
>> version. Every user of it also checks CONFIG_DEBUG_INFO_BTF, so make it
>> depend on CONFIG_CC_IS_CLANG only.
>>
>> The pahole flags and the resulting config are unchanged, except that
>> CONFIG_PAHOLE_HAS_LANG_EXCLUDE is gone.
>>
>> Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
> one suggestion below, but
>
> Acked-by: Alan Maguire <almagui@kernel.org>
>
>> ---
>> init/Kconfig | 2 +-
>> lib/Kconfig.debug | 12 +-----------
>> scripts/Makefile.btf | 2 +-
>> 3 files changed, 3 insertions(+), 13 deletions(-)
>>
>> diff --git a/init/Kconfig b/init/Kconfig
>> index c8a7cfa60a6e..ca7f20462d0c 100644
>> --- a/init/Kconfig
>> +++ b/init/Kconfig
>> @@ -2065,7 +2065,7 @@ config RUST
>> depends on !MODVERSIONS || GENDWARFKSYMS
>> depends on !GCC_PLUGIN_RANDSTRUCT
>> depends on !RANDSTRUCT
>> - depends on !DEBUG_INFO_BTF || (PAHOLE_HAS_LANG_EXCLUDE && !LTO)
>> + depends on !DEBUG_INFO_BTF || !LTO
>> depends on !CFI || HAVE_CFI_ICALL_NORMALIZE_INTEGERS_RUSTC
>> select CFI_ICALL_NORMALIZE_INTEGERS if CFI
>> depends on !KASAN || CC_IS_CLANG
>> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
>> index 9479034afe5a..c6123d52576e 100644
>> --- a/lib/Kconfig.debug
>> +++ b/lib/Kconfig.debug
>> @@ -409,22 +409,12 @@ config DEBUG_INFO_BTF
>> DWARF type info into equivalent deduplicated BTF type info.
>>
>> config PAHOLE_HAS_BTF_TAG
>> - def_bool PAHOLE_VERSION >= 123
>> - depends on CC_IS_CLANG
>> + def_bool CC_IS_CLANG
>> help
>> Decide whether pahole emits btf_tag attributes (btf_type_tag and
>> btf_decl_tag) or not. Currently only clang compiler implements
>> these attributes, so make the config depend on CC_IS_CLANG.
>>
> While we're in the area, should we fix this to reflect that gcc has BTF tag
> support now?
I am not an expert for gcc BTF tag thing. I guess some testing are needed if
we want to removing 'depends on CC_IS_CLANG'. This can be a follow-up.
>> -config PAHOLE_HAS_LANG_EXCLUDE
>> - def_bool PAHOLE_VERSION >= 124
>> - help
>> - Support for the --lang_exclude flag which makes pahole exclude
>> - compilation units from the supplied language. Used in Kbuild to
>> - omit Rust CUs which are not supported in version 1.24 of pahole,
>> - otherwise it would emit malformed kernel and module binaries when
>> - using DEBUG_INFO_BTF_MODULES.
>> -
>> config PAHOLE_HAS_INLINE
>> def_bool PAHOLE_VERSION >= 132
>> help
>> diff --git a/scripts/Makefile.btf b/scripts/Makefile.btf
>> index 02ff1702e1e8..8cd8c88d4580 100644
>> --- a/scripts/Makefile.btf
>> +++ b/scripts/Makefile.btf
>> @@ -20,7 +20,7 @@ pahole-flags-$(call test-ge, $(pahole-ver), 131) += --btf_features=layout
>>
>> endif
>>
>> -pahole-flags-$(CONFIG_PAHOLE_HAS_LANG_EXCLUDE) += --lang_exclude=rust
>> +pahole-flags-y += --lang_exclude=rust
>>
>> btf-inline := $(CONFIG_DEBUG_INFO_BTF_INLINE)
>> ifneq ($(btf-inline),)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH bpf-next 2/2] kbuild, bpf: Remove pahole version checks below v1.24
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:41 ` bot+bpf-ci
2026-11-24 2:28 ` Yonghong Song
1 sibling, 1 reply; 7+ messages in thread
From: bot+bpf-ci @ 2026-11-23 23:41 UTC (permalink / raw)
To: yonghong.song, bpf
Cc: ast, andrii, daniel, eddyz87, kernel-team, ast, andrii, daniel,
martin.lau, eddyz87, yonghong.song, mason, ihor.solodrai
[-- Attachment #1: Type: text/plain, Size: 2330 bytes --]
> kbuild, bpf: Remove pahole version checks below v1.24
TL;DR: Commit message only: claiming the resulting config is unchanged looks
inaccurate, since PAHOLE_HAS_BTF_TAG becomes y for clang builds without BTF,
though with no functional effect today.
> kbuild, bpf: Remove pahole version checks below v1.24
>
> The previous patch makes CONFIG_DEBUG_INFO_BTF require pahole v1.24, so
> the Kconfig checks for an older pahole always pass with
> CONFIG_DEBUG_INFO_BTF.
> Remove CONFIG_PAHOLE_HAS_LANG_EXCLUDE (pahole v1.24), which is always
> set with CONFIG_DEBUG_INFO_BTF. Drop it from the dependency of
> CONFIG_RUST on !CONFIG_DEBUG_INFO_BTF, and always pass
> --lang_exclude=rust in scripts/Makefile.btf, which is only included
> with CONFIG_DEBUG_INFO_BTF.
> CONFIG_PAHOLE_HAS_BTF_TAG (pahole v1.23) is still needed, since
> btf_type_tag is only used with clang, but it no longer needs the pahole
> version. Every user of it also checks CONFIG_DEBUG_INFO_BTF, so make it
> depend on CONFIG_CC_IS_CLANG only.
> The pahole flags and the resulting config are unchanged, except that
> CONFIG_PAHOLE_HAS_LANG_EXCLUDE is gone.
Is the last sentence of the commit message accurate?
The new definition changes the resulting config for clang builds without
BTF:
Before:
config PAHOLE_HAS_BTF_TAG
def_bool PAHOLE_VERSION >= 123
depends on CC_IS_CLANG
After:
config PAHOLE_HAS_BTF_TAG
def_bool CC_IS_CLANG
With LLVM=1 and pahole missing or older than v1.23, PAHOLE_VERSION is
below 123, so PAHOLE_HAS_BTF_TAG was n before. Now it is y, and
CONFIG_PAHOLE_HAS_BTF_TAG=y is written to .config and the generated
autoconf.h and rustc_cfg even though CONFIG_DEBUG_INFO_BTF is n.
This has no functional effect today, since both users (compiler_types.h
and trace_event_update_with_eval_map()) also test CONFIG_DEBUG_INFO_BTF.
Would it be better to use "def_bool DEBUG_INFO_BTF && CC_IS_CLANG" so the
generated config stays identical, or to reword the commit message to say
that CONFIG_PAHOLE_HAS_BTF_TAG is now also set in clang configurations
without BTF?
---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
CI run summary: https://github.com/kernel-patches/bpf/actions/runs/45289030741
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH bpf-next 2/2] kbuild, bpf: Remove pahole version checks below v1.24
2026-11-23 23:41 ` bot+bpf-ci
@ 2026-11-24 2:28 ` Yonghong Song
0 siblings, 0 replies; 7+ messages in thread
From: Yonghong Song @ 2026-11-24 2:28 UTC (permalink / raw)
To: bot+bpf-ci, bpf
Cc: ast, andrii, daniel, eddyz87, kernel-team, martin.lau, mason,
ihor.solodrai
On 11/23/26 3:41 PM, bot+bpf-ci@kernel.org wrote:
>> kbuild, bpf: Remove pahole version checks below v1.24
> TL;DR: Commit message only: claiming the resulting config is unchanged looks
> inaccurate, since PAHOLE_HAS_BTF_TAG becomes y for clang builds without BTF,
> though with no functional effect today.
>
>> kbuild, bpf: Remove pahole version checks below v1.24
>>
>> The previous patch makes CONFIG_DEBUG_INFO_BTF require pahole v1.24, so
>> the Kconfig checks for an older pahole always pass with
>> CONFIG_DEBUG_INFO_BTF.
>> Remove CONFIG_PAHOLE_HAS_LANG_EXCLUDE (pahole v1.24), which is always
>> set with CONFIG_DEBUG_INFO_BTF. Drop it from the dependency of
>> CONFIG_RUST on !CONFIG_DEBUG_INFO_BTF, and always pass
>> --lang_exclude=rust in scripts/Makefile.btf, which is only included
>> with CONFIG_DEBUG_INFO_BTF.
>> CONFIG_PAHOLE_HAS_BTF_TAG (pahole v1.23) is still needed, since
>> btf_type_tag is only used with clang, but it no longer needs the pahole
>> version. Every user of it also checks CONFIG_DEBUG_INFO_BTF, so make it
>> depend on CONFIG_CC_IS_CLANG only.
>> The pahole flags and the resulting config are unchanged, except that
>> CONFIG_PAHOLE_HAS_LANG_EXCLUDE is gone.
> Is the last sentence of the commit message accurate?
>
> The new definition changes the resulting config for clang builds without
> BTF:
>
> Before:
> config PAHOLE_HAS_BTF_TAG
> def_bool PAHOLE_VERSION >= 123
> depends on CC_IS_CLANG
>
> After:
> config PAHOLE_HAS_BTF_TAG
> def_bool CC_IS_CLANG
>
> With LLVM=1 and pahole missing or older than v1.23, PAHOLE_VERSION is
> below 123, so PAHOLE_HAS_BTF_TAG was n before. Now it is y, and
> CONFIG_PAHOLE_HAS_BTF_TAG=y is written to .config and the generated
> autoconf.h and rustc_cfg even though CONFIG_DEBUG_INFO_BTF is n.
>
> This has no functional effect today, since both users (compiler_types.h
> and trace_event_update_with_eval_map()) also test CONFIG_DEBUG_INFO_BTF.
>
> Would it be better to use "def_bool DEBUG_INFO_BTF && CC_IS_CLANG" so the
> generated config stays identical, or to reword the commit message to say
> that CONFIG_PAHOLE_HAS_BTF_TAG is now also set in clang configurations
> without BTF?
Okay, since CONFIG_DEBUG_INFO_BTF is not involved with PAHOLE_HAS_BTF_TAG,
I will leave it as is in the next revision.
>
> ---
> AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
> See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
>
> CI run summary: https://github.com/kernel-patches/bpf/actions/runs/45289030741
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH bpf-next 1/2] lib/Kconfig.debug: Set the minimum required pahole version to v1.24
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:19 ` Alan Maguire
1 sibling, 0 replies; 7+ messages in thread
From: Alan Maguire @ 2026-11-23 23:19 UTC (permalink / raw)
To: Yonghong Song, bpf
Cc: Alexei Starovoitov, Andrii Nakryiko, Daniel Borkmann,
Eduard Zingerman, kernel-team
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-11-24 2:36 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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-24 2:36 ` Yonghong Song
2026-11-23 23:41 ` bot+bpf-ci
2026-11-24 2:28 ` Yonghong Song
2026-11-23 23:19 ` [PATCH bpf-next 1/2] lib/Kconfig.debug: Set the minimum required pahole version to v1.24 Alan Maguire
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.