public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
From: Eduard Zingerman <eddyz87@gmail.com>
To: Mykyta Yatsenko <mykyta.yatsenko5@gmail.com>,
	bpf@vger.kernel.org,  ast@kernel.org, andrii@kernel.org,
	daniel@iogearbox.net, kafai@meta.com,  kernel-team@meta.com
Cc: Mykyta Yatsenko <yatsenko@meta.com>
Subject: Re: [PATCH bpf-next v2 2/2] selftests/bpf: Use bpf_program__clone() in veristat
Date: Tue, 24 Feb 2026 11:16:10 -0800	[thread overview]
Message-ID: <43efe1142fbc695b3fc7ab0c814fd32e2a6850bb.camel@gmail.com> (raw)
In-Reply-To: <057a7b17-6ecb-4c0f-b176-1e6349b641db@gmail.com>

On Tue, 2026-02-24 at 19:12 +0000, Mykyta Yatsenko wrote:
> On 2/24/26 19:08, Eduard Zingerman wrote:
> > On Tue, 2026-02-24 at 12:20 +0000, Mykyta Yatsenko wrote:
> > 
> > [...]
> > 
> > > > I run selftests binaries through old and new veristat versions and see
> > > > some discrepancies. csv files attached.
> > > > It looks like there are some failures that are now not logged.
> > > > There is also at-least one success -> failure transition and
> > > > a bunch of failure -> success transitions.
> > > > I see no such differences for sched_ext programs.
> > > > Is this an expected behavior?
> > > yes, the regressions are explained in the cover letter:
> > > """
> > > Known regression:
> > > - Program-containing maps (PROG_ARRAY, DEVMAP, CPUMAP) track
> > > owner program type. Programs with incompatible attributes
> > > loaded against a shared map will be rejected. This is
> > > expected kernel behavior.
> > > """
> > > in the previous version of this series, there were no regressions,
> > > but to achieve that we had to be a little bit creative with maps
> > > loading, have a look:
> > > https://lore.kernel.org/all/20260212-veristat_prepare-v1-1-c351023fb0db@meta.com/
> > > clone_prog_maps()
> > > 
> > > The improvements are explained in the sibling thread with Alexei
> > > (again because of PROG_ARRAY type of maps)
> > Are you sure that's what happens?
> > Looking at 'failure -> N/A' transitions, it appears that this is
> > caused by the early exit from process_obj() if bpf_object__prepare() fails.
> > Previously each program in the object failing the __prepare() was
> > reported as 'failed', now these are skipped entirely.
> > I think it would be nice to have an additional logic in process_obj()
> > marking programs as failed if __prepare() fails.
> Ah, you mean those ones, I don't consider these regressions,
> because they failed in the base version anyways. I discussed this case
> with Andrii:
> https://lore.kernel.org/all/7990bafe-d72c-47de-a711-0c8a888d4ed9@gmail.com/
> 
> What I was talking is the case where it goes from
> success to failure with these changes.

I think this part is worth doing:

  > If we really need to be on par, I can iterate over progs if 
  > bpf_object__prepare()
  > fails, it just looks a bit awkward.

Because otherwise these programs would be completely invisible in the
csv output.

  reply	other threads:[~2026-02-24 19:16 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-20 19:18 [PATCH bpf-next v2 0/2] libbpf: Add bpf_program__clone() for individual program loading Mykyta Yatsenko
2026-02-20 19:18 ` [PATCH bpf-next v2 1/2] libbpf: Introduce bpf_program__clone() Mykyta Yatsenko
2026-02-23 17:25   ` Emil Tsalapatis
2026-02-23 17:59     ` Mykyta Yatsenko
2026-02-23 18:04       ` Emil Tsalapatis
2026-02-24 19:28   ` Eduard Zingerman
2026-02-24 19:32     ` Eduard Zingerman
2026-02-24 20:47     ` Mykyta Yatsenko
2026-03-06 17:22   ` [External] " Andrey Grodzovsky
2026-03-10  0:08     ` Mykyta Yatsenko
2026-03-11 13:35       ` Andrey Grodzovsky
2026-03-11 22:52     ` Andrii Nakryiko
2026-03-16 14:23       ` Andrey Grodzovsky
2026-03-11 23:03   ` Andrii Nakryiko
2026-02-20 19:18 ` [PATCH bpf-next v2 2/2] selftests/bpf: Use bpf_program__clone() in veristat Mykyta Yatsenko
2026-02-23 17:49   ` Emil Tsalapatis
2026-02-23 18:39     ` Mykyta Yatsenko
2026-02-23 18:54       ` Emil Tsalapatis
2026-02-24  2:03   ` Eduard Zingerman
2026-02-24 12:20     ` Mykyta Yatsenko
2026-02-24 19:08       ` Eduard Zingerman
2026-02-24 19:12         ` Mykyta Yatsenko
2026-02-24 19:16           ` Eduard Zingerman [this message]
2026-02-20 22:48 ` [PATCH bpf-next v2 0/2] libbpf: Add bpf_program__clone() for individual program loading Alexei Starovoitov
2026-02-23 13:57   ` Mykyta Yatsenko

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=43efe1142fbc695b3fc7ab0c814fd32e2a6850bb.camel@gmail.com \
    --to=eddyz87@gmail.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=kafai@meta.com \
    --cc=kernel-team@meta.com \
    --cc=mykyta.yatsenko5@gmail.com \
    --cc=yatsenko@meta.com \
    /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