[PATCH bpf-next] selftests/bpf: Use snake_case for subtest descriptions in jit_insns_arena.c

From: Tiezhu Yang

Date: Sun Oct 18 2026 - 22:27:23 EST


Normalize two inline assembly test descriptions in jit_insns_arena.c
from space-separated strings to snake_case for consistency and to fix
command-line filter parsing in test_progs. Otherwise:

$ sudo ./test_progs -t jit_insns/arena access with zero offset
Usage: test_progs [OPTION...]
Try `test_progs --help' or `test_progs --usage' for more information.

$ sudo ./test_progs -t jit_insns/cast to a user address
Usage: test_progs [OPTION...]
Try `test_progs --help' or `test_progs --usage' for more information.

Signed-off-by: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>
---
Note: This issue was introduced by the recent commit 54e8bde13a3a
("selftests/bpf: Add JIT instruction tests"). Since it's only in
bpf-next and hasn't been merged into mainline yet, no need to add
Fixes tag IMO.

tools/testing/selftests/bpf/progs/jit_insns_arena.c | 4 ++--
1 file changed, 2 insertions(+), 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..16276ec192ac 100644
--- a/tools/testing/selftests/bpf/progs/jit_insns_arena.c
+++ b/tools/testing/selftests/bpf/progs/jit_insns_arena.c
@@ -34,7 +34,7 @@ struct {

#if defined(__BPF_FEATURE_ADDR_SPACE_CAST)
SEC("syscall")
-__description("arena access with zero offset")
+__description("arena_access_with_zero_offset")
__success __retval(0)
int arena_zero_off(void *ctx)
{
@@ -82,7 +82,7 @@ int arena_zero_off(void *ctx)
}

SEC("syscall")
-__description("cast to a user address")
+__description("cast_to_a_user_address")
__success __retval(0)
int cast_to_user(void *ctx)
{
--
2.42.0