BPF List
 help / color / mirror / Atom feed
From: Yonghong Song <yonghong.song@linux.dev>
To: bot+bpf-ci@kernel.org, bpf@vger.kernel.org
Cc: ast@kernel.org, andrii@kernel.org, daniel@iogearbox.net,
	eddyz87@gmail.com, kernel-team@fb.com, martin.lau@kernel.org,
	mason@kernel.org, ihor.solodrai@linux.dev
Subject: Re: [PATCH bpf-next 2/2] kbuild, bpf: Remove pahole version checks below v1.24
Date: Mon, 23 Nov 2026 18:28:39 -0800	[thread overview]
Message-ID: <7c51f0df-461a-463c-afff-16644f65c107@linux.dev> (raw)
In-Reply-To: <dc257c60f91ba87c244a6bf9a9d7b424adfd17629c6926085c87cd2188772df3@mail.kernel.org>



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


  reply	other threads:[~2026-11-24  2:28 UTC|newest]

Thread overview: 7+ 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-24  2:36     ` Yonghong Song
2026-11-23 23:41   ` bot+bpf-ci
2026-11-24  2:28     ` Yonghong Song [this message]
2026-11-23 23:19 ` [PATCH bpf-next 1/2] lib/Kconfig.debug: Set the minimum required pahole version to v1.24 Alan Maguire

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=7c51f0df-461a-463c-afff-16644f65c107@linux.dev \
    --to=yonghong.song@linux.dev \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bot+bpf-ci@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=ihor.solodrai@linux.dev \
    --cc=kernel-team@fb.com \
    --cc=martin.lau@kernel.org \
    --cc=mason@kernel.org \
    /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