]> git.itanic.dy.fi Git - linux-stable/commit
selftests/bpf: move SYS() macro into the test_progs.h
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 24 Feb 2023 06:13:42 +0000 (14:13 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Sat, 25 Feb 2023 01:34:09 +0000 (17:34 -0800)
commitb61987d37cbee3c44e80304598c60b163553926b
treed8285e29e6fd7154ebcb172f765effdc9538fb02
parentd0093aaefa35b80990c05a424dad2396ba4549d7
selftests/bpf: move SYS() macro into the test_progs.h

A lot of tests defined SYS() macro to run system calls with goto label.
Let's move this macro to test_progs.h and add configurable
"goto_label" as the first arg.

Suggested-by: Martin KaFai Lau <martin.lau@linux.dev>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20230224061343.506571-2-liuhangbin@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/prog_tests/decap_sanity.c
tools/testing/selftests/bpf/prog_tests/empty_skb.c
tools/testing/selftests/bpf/prog_tests/fib_lookup.c
tools/testing/selftests/bpf/prog_tests/tc_redirect.c
tools/testing/selftests/bpf/prog_tests/test_tunnel.c
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
tools/testing/selftests/bpf/prog_tests/xdp_metadata.c
tools/testing/selftests/bpf/prog_tests/xdp_synproxy.c
tools/testing/selftests/bpf/prog_tests/xfrm_info.c
tools/testing/selftests/bpf/test_progs.h