OSDN Git Service

selftests/bpf: Use PT_REGS_SYSCALL_REGS in bpf_syscall_macro
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 9 Feb 2022 02:17:38 +0000 (03:17 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 9 Feb 2022 05:16:14 +0000 (21:16 -0800)
commit3f928cab927c576f3385f3e828c53a95b2199f58
tree9626f883140cea250241e43b5e7bee82013ed996
parentc5a1ffa0da76da02afc20a0946b594830488b324
selftests/bpf: Use PT_REGS_SYSCALL_REGS in bpf_syscall_macro

Ensure that PT_REGS_SYSCALL_REGS works correctly.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220209021745.2215452-4-iii@linux.ibm.com
tools/testing/selftests/bpf/progs/bpf_syscall_macro.c