selftests/bpf: Add 6-argument syscall tracing test
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 20 Jan 2023 20:09:13 +0000 (12:09 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 23 Jan 2023 19:53:01 +0000 (20:53 +0100)
commit92dc5cdfc1131befa061cab8ed772c7bf8bfb2db
tree20220b0d5adf82494f06de8f15d2ffba19f1492b
parent12a299f0b5c746c244bd06fe6a2b3672e9036e83
selftests/bpf: Add 6-argument syscall tracing test

Turns out splice() is one of the syscalls that's using current maximum
number of arguments (six). This is perfect for testing, so extend
bpf_syscall_macro selftest to also trace splice() syscall, using
BPF_KSYSCALL() macro. This makes sure all the syscall argument register
definitions are correct.

Suggested-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Alan Maguire <alan.maguire@oracle.com> # arm64
Tested-by: Ilya Leoshkevich <iii@linux.ibm.com> # s390x
Link: https://lore.kernel.org/bpf/20230120200914.3008030-25-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/test_bpf_syscall_macro.c
tools/testing/selftests/bpf/progs/bpf_syscall_macro.c