From: Ihor Solodrai <ihor.solodrai@linux.dev>
To: Hemanth Malla <vmalla@linux.microsoft.com>,
bpf@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org,
martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org,
yonghong.song@linux.dev, john.fastabend@gmail.com,
kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com,
jolsa@kernel.org, vmalla@microsoft.com, corbet@lwn.net,
Alan Maguire <alan.maguire@oracle.com>,
dwarves <dwarves@vger.kernel.org>
Subject: Re: [PATCH bpf-next] bpf, docs: Update pahole to 1.28 for selftests
Date: Fri, 2 Jan 2026 07:33:50 -0800 [thread overview]
Message-ID: <bcd23277-a18e-4bb5-ba76-3416c84511c2@linux.dev> (raw)
In-Reply-To: <1767352415-24862-1-git-send-email-vmalla@linux.microsoft.com>
On 1/2/26 3:13 AM, Hemanth Malla wrote:
> From: Hemanth Malla <vmalla@microsoft.com>
>
> pahole 1.16 doesn't seem to be to sufficient anymore for running bpf
> selftests.
>
> Signed-off-by: Hemanth Malla <vmalla@microsoft.com>
> ---
> Documentation/bpf/bpf_devel_QA.rst | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/Documentation/bpf/bpf_devel_QA.rst b/Documentation/bpf/bpf_devel_QA.rst
> index 0acb4c9b8d90..3a147b6c780e 100644
> --- a/Documentation/bpf/bpf_devel_QA.rst
> +++ b/Documentation/bpf/bpf_devel_QA.rst
> @@ -482,7 +482,7 @@ under test should match the config file fragment in
> tools/testing/selftests/bpf as closely as possible.
>
> Finally to ensure support for latest BPF Type Format features -
> -discussed in Documentation/bpf/btf.rst - pahole version 1.16
> +discussed in Documentation/bpf/btf.rst - pahole version 1.28
Hi Hemanth, thanks for the patch.
Acked-by: Ihor Solodrai <ihor.solodrai@linux.dev>
1.28 is needed for --distilled_base [1], which is only a requirement
for tests using modules. Many other tests are likely to work with
older versions, but the minimum for the kernel build is 1.22 now [2].
Not sure if it's worth it to add this nuance to the QA doc, although
in general we should recommend people running the selftests to use the
latest pahole release. Maybe add a comment?
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/bpf/btf.rst?h=v6.18#n986
[2] https://lore.kernel.org/bpf/20251219181825.1289460-1-ihor.solodrai@linux.dev/
> is required for kernels built with CONFIG_DEBUG_INFO_BTF=y.
> pahole is delivered in the dwarves package or can be built
> from source at
> @@ -502,9 +502,6 @@ codes from
>
> https://fedorapeople.org/~acme/dwarves
>
> -Some distros have pahole version 1.16 packaged already, e.g.
> -Fedora, Gentoo.
> -
> Q: Which BPF kernel selftests version should I run my kernel against?
> ---------------------------------------------------------------------
> A: If you run a kernel ``xyz``, then always run the BPF kernel selftests
prev parent reply other threads:[~2026-01-02 15:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-02 11:13 [PATCH bpf-next] bpf, docs: Update pahole to 1.28 for selftests Hemanth Malla
2026-01-02 15:33 ` Ihor Solodrai [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=bcd23277-a18e-4bb5-ba76-3416c84511c2@linux.dev \
--to=ihor.solodrai@linux.dev \
--cc=alan.maguire@oracle.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=corbet@lwn.net \
--cc=daniel@iogearbox.net \
--cc=dwarves@vger.kernel.org \
--cc=eddyz87@gmail.com \
--cc=haoluo@google.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kpsingh@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.lau@linux.dev \
--cc=sdf@fomichev.me \
--cc=song@kernel.org \
--cc=vmalla@linux.microsoft.com \
--cc=vmalla@microsoft.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;
as well as URLs for NNTP newsgroup(s).