* [PATCH bpf-next] bpf, docs: Update pahole to 1.28 for selftests
@ 2026-01-02 11:13 Hemanth Malla
2026-01-02 15:33 ` Ihor Solodrai
0 siblings, 1 reply; 5+ messages in thread
From: Hemanth Malla @ 2026-01-02 11:13 UTC (permalink / raw)
To: bpf, linux-doc, linux-kernel
Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
john.fastabend, kpsingh, sdf, haoluo, jolsa, vmalla, corbet
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
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
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH bpf-next] bpf, docs: Update pahole to 1.28 for selftests
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
2026-01-03 9:11 ` Bagas Sanjaya
2026-01-04 5:55 ` Hemanth Malla
0 siblings, 2 replies; 5+ messages in thread
From: Ihor Solodrai @ 2026-01-02 15:33 UTC (permalink / raw)
To: Hemanth Malla, bpf, linux-doc, linux-kernel
Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
john.fastabend, kpsingh, sdf, haoluo, jolsa, vmalla, corbet,
Alan Maguire, dwarves
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH bpf-next] bpf, docs: Update pahole to 1.28 for selftests
2026-01-02 15:33 ` Ihor Solodrai
@ 2026-01-03 9:11 ` Bagas Sanjaya
2026-01-05 21:46 ` Andrii Nakryiko
2026-01-04 5:55 ` Hemanth Malla
1 sibling, 1 reply; 5+ messages in thread
From: Bagas Sanjaya @ 2026-01-03 9:11 UTC (permalink / raw)
To: Ihor Solodrai, Hemanth Malla, bpf, linux-doc, linux-kernel
Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
john.fastabend, kpsingh, sdf, haoluo, jolsa, vmalla, corbet,
Alan Maguire, dwarves
[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]
On Fri, Jan 02, 2026 at 07:33:50AM -0800, Ihor Solodrai wrote:
> On 1/2/26 3:13 AM, Hemanth Malla wrote:
> > 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?
I guess minimum pahole version can be added to
Documentation/process/changes.rst.
Thanks.
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH bpf-next] bpf, docs: Update pahole to 1.28 for selftests
2026-01-02 15:33 ` Ihor Solodrai
2026-01-03 9:11 ` Bagas Sanjaya
@ 2026-01-04 5:55 ` Hemanth Malla
1 sibling, 0 replies; 5+ messages in thread
From: Hemanth Malla @ 2026-01-04 5:55 UTC (permalink / raw)
To: ihor.solodrai
Cc: alan.maguire, andrii, ast, bpf, corbet, daniel, dwarves, eddyz87,
haoluo, john.fastabend, jolsa, kpsingh, linux-doc, linux-kernel,
martin.lau, sdf, song, vmalla, vmalla, yonghong.song
Hi Ihor,
> 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?
Thanks for the references. Makes sense to include these in the docs.
I'll send out a new patch.
Thanks,
Hemanth Malla
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH bpf-next] bpf, docs: Update pahole to 1.28 for selftests
2026-01-03 9:11 ` Bagas Sanjaya
@ 2026-01-05 21:46 ` Andrii Nakryiko
0 siblings, 0 replies; 5+ messages in thread
From: Andrii Nakryiko @ 2026-01-05 21:46 UTC (permalink / raw)
To: Bagas Sanjaya
Cc: Ihor Solodrai, Hemanth Malla, bpf, linux-doc, linux-kernel, ast,
daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
john.fastabend, kpsingh, sdf, haoluo, jolsa, vmalla, corbet,
Alan Maguire, dwarves
On Sat, Jan 3, 2026 at 1:11 AM Bagas Sanjaya <bagasdotme@gmail.com> wrote:
>
> On Fri, Jan 02, 2026 at 07:33:50AM -0800, Ihor Solodrai wrote:
> > On 1/2/26 3:13 AM, Hemanth Malla wrote:
> > > 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?
>
> I guess minimum pahole version can be added to
> Documentation/process/changes.rst.
pahole 1.22 is already specified in Documentation/process/changes.rst
>
> Thanks.
>
> --
> An old man doll... just what I always wanted! - Clara
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-01-05 21:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-01-03 9:11 ` Bagas Sanjaya
2026-01-05 21:46 ` Andrii Nakryiko
2026-01-04 5:55 ` Hemanth Malla
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).