From: sashiko-bot@kernel.org
To: "Alan Maguire" <almagui@kernel.org>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH bpf-next 6/7] selftests/bpf: Test detection of function argument relocation support
Date: Mon, 23 Nov 2026 22:36:33 +0000 [thread overview]
Message-ID: <sashiko-outbox-230150@kernel.org> (raw)
In-Reply-To: <20261123223227.745345-7-almagui@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] selftests/bpf: non-standard multi-line comment style in
func_args_core.c
--
commit 636af5484ed5c26ea73ebeb02b695ba9f266ad9c
Author: Alan Maguire <almagui@kernel.org>
selftests/bpf: Test detection of function argument relocation support
This commit adds selftest checks verifying that bpf_func_args_supported()
returns 1 for function argument structs in fentry, fexit, LSM and LSM
cgroup programs, and 0 for structs lacking the bpf_func_args tag.
> diff --git a/tools/testing/selftests/bpf/progs/func_args_core.c b/tools/testing/selftests/bpf/progs/func_args_core.c
> index 4656a6c642d10..cf2785d9349f9 100644
> --- a/tools/testing/selftests/bpf/progs/func_args_core.c
> +++ b/tools/testing/selftests/bpf/progs/func_args_core.c
> @@ -32,11 +32,23 @@ struct fentry_test3_args {
>
> __u64 t3_a, t3_b, t3_c, t3_b_alias, t3_ret;
> int t3_missing_exists = -1, t3_bad_type_exists = -1, t3_missing_flavor_exists = -1;
> +int t3_supported = -1, t3_untagged_supported = -1;
> +
> +/* without the bpf_func_args tag, as for libbpf or kernel versions without
> + * support for function argument relocations; no kernel type has this name
> + */
[Severity: Low]
This isn't a bug, but BPF coding style puts the opening /* of a
multi-line comment on its own line with the comment text starting on the
next line.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123223227.745345-1-almagui@kernel.org?part=6
next prev parent reply other threads:[~2026-11-23 22:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 22:32 [PATCH bpf-next 0/7] libbpf, bpf: Utilize CO-RE for BPF program parameter presence, ordering Alan Maguire
2026-11-23 22:32 ` [PATCH bpf-next 1/7] libbpf: Support CO-RE relocation of tracing program arguments Alan Maguire
2026-11-23 22:53 ` sashiko-bot
2026-11-23 23:23 ` bot+bpf-ci
2026-11-23 22:32 ` [PATCH bpf-next 2/7] bpf: " Alan Maguire
2026-11-23 22:52 ` sashiko-bot
2026-11-23 22:32 ` [PATCH bpf-next 3/7] selftests/bpf: Test " Alan Maguire
2026-11-23 22:43 ` sashiko-bot
2026-11-23 22:32 ` [PATCH bpf-next 4/7] selftests/bpf: Test CO-RE relocation of BPF LSM " Alan Maguire
2026-11-23 22:41 ` sashiko-bot
2026-11-23 22:32 ` [PATCH bpf-next 5/7] libbpf: Report function argument relocation support via type existence Alan Maguire
2026-11-23 22:38 ` sashiko-bot
2026-11-23 22:32 ` [PATCH bpf-next 6/7] selftests/bpf: Test detection of function argument relocation support Alan Maguire
2026-11-23 22:36 ` sashiko-bot [this message]
2026-11-23 22:32 ` [PATCH bpf-next 7/7] Documentation/bpf: Describe CO-RE relocation of function arguments Alan Maguire
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=sashiko-outbox-230150@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=almagui@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=sashiko-reviews@lists.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