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
This commit is contained in:
Ilya Leoshkevich 2022-02-09 03:17:38 +01:00 committed by Andrii Nakryiko
parent c5a1ffa0da
commit 3f928cab92
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ int BPF_KPROBE(handle_sys_prctl)
if (pid != filter_pid)
return 0;
real_regs = (struct pt_regs *)PT_REGS_PARM1(ctx);
real_regs = PT_REGS_SYSCALL_REGS(ctx);
/* test for PT_REGS_PARM */