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:08:41 -0800 [thread overview]
Message-ID: <37d63e5e33cc9ba0b7e042b982207de2146d07ad.camel@gmail.com> (raw)
In-Reply-To: <474b3520-f5cf-45b3-be01-d14708cc9a14@gmail.com>
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.
next prev parent reply other threads:[~2026-02-24 19:08 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 [this message]
2026-02-24 19:12 ` Mykyta Yatsenko
2026-02-24 19:16 ` Eduard Zingerman
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=37d63e5e33cc9ba0b7e042b982207de2146d07ad.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 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.