[PATCH bpf-next v3] selftests/bpf: Drop subtest descriptions in jit_insns_arena.c

From: Tiezhu Yang

Date: Mon Oct 19 2026 - 04:35:28 EST


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@xxxxxxxxxxx>
---
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