* [PATCH bpf-next v3] selftests/bpf: Drop subtest descriptions in jit_insns_arena.c
@ 2026-10-19 8:30 Tiezhu Yang
2026-10-19 12:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Tiezhu Yang @ 2026-10-19 8:30 UTC (permalink / raw)
To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
Eduard Zingerman, Kumar Kartikeya Dwivedi
Cc: bpf, linux-kernel
Drop the redundant __description macros from arena_zero_off and
cast_to_user inside jit_insns_arena.c.
This allows the test_loader framework to automatically fallback
to the snake_case C function names rather than the description
string for test display.
Before:
$ sudo ./test_progs -t jit_insns/arena_zero_off | tail -3
#191/1 jit_insns/arena access with zero offset:FAIL
#191 jit_insns:FAIL
Summary: 1/0 PASSED, 0 SKIPPED, 1/1 FAILED
$ sudo ./test_progs -t jit_insns/cast_to_user
#191/2 jit_insns/cast to a user address:OK
#191 jit_insns:OK
#192 jit_insns_blinded:OK
Summary: 2/1 PASSED, 0 SKIPPED, 0/0 FAILED
After:
$ sudo ./test_progs -t jit_insns/arena_zero_off | tail -3
#191/1 jit_insns/arena_zero_off:FAIL
#191 jit_insns:FAIL
Summary: 1/0 PASSED, 0 SKIPPED, 1/1 FAILED
$ sudo ./test_progs -t jit_insns/cast_to_user
#191/2 jit_insns/cast_to_user:OK
#191 jit_insns:OK
#192 jit_insns_blinded:OK
Summary: 2/1 PASSED, 0 SKIPPED, 0/0 FAILED
The main goal is that if a test fails, developers can immediately
recognize the exact, actionable test name from the standard output
and rerun it without any confusion.
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
tools/testing/selftests/bpf/progs/jit_insns_arena.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/testing/selftests/bpf/progs/jit_insns_arena.c b/tools/testing/selftests/bpf/progs/jit_insns_arena.c
index b396d5aefb5a..95736eae2a58 100644
--- a/tools/testing/selftests/bpf/progs/jit_insns_arena.c
+++ b/tools/testing/selftests/bpf/progs/jit_insns_arena.c
@@ -34,7 +34,6 @@ struct {
#if defined(__BPF_FEATURE_ADDR_SPACE_CAST)
SEC("syscall")
-__description("arena access with zero offset")
__success __retval(0)
int arena_zero_off(void *ctx)
{
@@ -82,7 +81,6 @@ int arena_zero_off(void *ctx)
}
SEC("syscall")
-__description("cast to a user address")
__success __retval(0)
int cast_to_user(void *ctx)
{
--
2.42.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH bpf-next v3] selftests/bpf: Drop subtest descriptions in jit_insns_arena.c
2026-10-19 8:30 [PATCH bpf-next v3] selftests/bpf: Drop subtest descriptions in jit_insns_arena.c Tiezhu Yang
@ 2026-10-19 12:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-10-19 12:20 UTC (permalink / raw)
To: Tiezhu Yang; +Cc: ast, daniel, andrii, eddyz87, memxor, bpf, linux-kernel
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:
On Mon, 19 Oct 2026 16:30:05 +0800 you wrote:
> Drop the redundant __description macros from arena_zero_off and
> cast_to_user inside jit_insns_arena.c.
>
> This allows the test_loader framework to automatically fallback
> to the snake_case C function names rather than the description
> string for test display.
>
> [...]
Here is the summary with links:
- [bpf-next,v3] selftests/bpf: Drop subtest descriptions in jit_insns_arena.c
https://git.kernel.org/bpf/bpf-next/c/25bb03f0a47b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-19 12:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 8:30 [PATCH bpf-next v3] selftests/bpf: Drop subtest descriptions in jit_insns_arena.c Tiezhu Yang
2026-10-19 12:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®