mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
selftests/bpf: Drop subtest descriptions in jit_insns_arena
Drop the redundant __description macros from arena_zero_off and cast_to_user inside jit_insns_arena. 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> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20261019083005.12236-1-yangtiezhu@loongson.cn
This commit is contained in:
parent
4f842631f1
commit
25bb03f0a4
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user