selftests/bpf: Reduce test_xdp_adjust_frags_tail_grow logs
authorYonghong Song <yonghong.song@linux.dev>
Sat, 7 Jun 2025 01:36:10 +0000 (18:36 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 7 Jun 2025 02:21:43 +0000 (19:21 -0700)
commitae8824037a0ac550745b223aa3680819ed65e8db
tree777b116d7c9ef4e70d781f77af2b5df5fd5dee29
parent64a064ce33b193a681f1eb52ac1ad09aadda9944
selftests/bpf: Reduce test_xdp_adjust_frags_tail_grow logs

For selftest xdp_adjust_tail/xdp_adjust_frags_tail_grow, if tested failure,
I see a long list of log output like

    ...
    test_xdp_adjust_frags_tail_grow:PASS:9Kb+10b-untouched 0 nsec
    test_xdp_adjust_frags_tail_grow:PASS:9Kb+10b-untouched 0 nsec
    test_xdp_adjust_frags_tail_grow:PASS:9Kb+10b-untouched 0 nsec
    test_xdp_adjust_frags_tail_grow:PASS:9Kb+10b-untouched 0 nsec
    ...

There are total 7374 lines of the above which is too much. Let us
only issue such logs when it is an assert failure.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20250607013610.1551399-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c