From: Jiri Olsa <olsajiri@gmail.com>
To: bot+bpf-ci@kernel.org
Cc: andrii@kernel.org, bpf@vger.kernel.org,
linux-kernel@vger.kernel.org, songliubraving@fb.com, yhs@fb.com,
john.fastabend@gmail.com, ast@kernel.org, daniel@iogearbox.net,
martin.lau@kernel.org, eddyz87@gmail.com,
yonghong.song@linux.dev, clm@meta.com, ihor.solodrai@linux.dev
Subject: Re: [PATCHv2 bpf-next 5/5] selftests/bpf: Add usdt trigger bench
Date: Tue, 10 Feb 2026 22:41:59 +0100 [thread overview]
Message-ID: <aYumJ5MINI-nT4xU@krava> (raw)
In-Reply-To: <aab191dcc7036e9ee105171cb4414df51c2ac0593daffff06c00e484b89c48b0@mail.kernel.org>
On Tue, Feb 10, 2026 at 02:12:11PM +0000, bot+bpf-ci@kernel.org wrote:
> > diff --git a/tools/testing/selftests/bpf/progs/trigger_bench.c b/tools/testing/selftests/bpf/progs/trigger_bench.c
> > index 4ea0422d1042..f631706bbdc9 100644
>
> [ ... ]
>
> > @@ -180,3 +181,10 @@ int bench_trigger_rawtp(void *ctx)
> > handle(ctx);
> > return 0;
> > }
> > +
> > +SEC("usdt")
> > +int bench_trigger_usdt(void *ctx)
>
> Should this use SEC("?usdt") instead of SEC("usdt")?
ah yes it should, will fix, thanks
jirka
>
> All other programs in this file use the '?' prefix to disable autoload by
> default:
>
> SEC("?uprobe")
> SEC("?uprobe.multi")
> SEC("?raw_tp")
> SEC("?kprobe/bpf_get_numa_node_id")
> ...
>
> Without the '?' prefix, bench_trigger_usdt will be auto-loaded whenever the
> trigger_bench skeleton is loaded by any benchmark using setup_ctx()/load_ctx(),
> adding unnecessary overhead to unrelated benchmarks.
>
> > +{
> > + inc_counter();
> > + return 0;
> > +}
>
>
> ---
> 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/21867569087
>
> AI-authorship-score: low
> AI-authorship-explanation: The commit exhibits natural kernel developer style with real benchmark data, informal comments, and follows existing codebase patterns with minor inconsistencies typical of human development.
> issues-found: 1
> issue-severity-score: low
> issue-severity-explanation: Minor pattern inconsistency in test code where SEC("usdt") should use SEC("?usdt") to match the established convention for disabling autoload by default.
prev parent reply other threads:[~2026-02-10 21:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-10 13:36 [PATCHv2 bpf-next 0/5] libbpf: Make optimized uprobes backward compatible Jiri Olsa
2026-02-10 13:36 ` [PATCHv2 bpf-next 1/5] libbpf: Add uprobe syscall feature detection Jiri Olsa
2026-02-10 13:36 ` [PATCHv2 bpf-next 2/5] libbpf: Add support to detect nop,nop5 instructions combo for usdt probe Jiri Olsa
2026-02-10 13:36 ` [PATCHv2 bpf-next 3/5] selftests/bpf: Emit nop,no5 instructions combo for x86_64 arch Jiri Olsa
2026-02-10 14:12 ` bot+bpf-ci
2026-02-10 13:36 ` [PATCHv2 bpf-next 4/5] selftests/bpf: Add test for checking correct nop of optimized usdt Jiri Olsa
2026-02-10 14:12 ` bot+bpf-ci
2026-02-10 21:22 ` Jiri Olsa
2026-02-10 13:36 ` [PATCHv2 bpf-next 5/5] selftests/bpf: Add usdt trigger bench Jiri Olsa
2026-02-10 14:12 ` bot+bpf-ci
2026-02-10 21:41 ` Jiri Olsa [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=aYumJ5MINI-nT4xU@krava \
--to=olsajiri@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bot+bpf-ci@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=clm@meta.com \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=ihor.solodrai@linux.dev \
--cc=john.fastabend@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.lau@kernel.org \
--cc=songliubraving@fb.com \
--cc=yhs@fb.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