libbpf: Fix syscall access arguments on riscv
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Wed, 4 Oct 2023 11:09:03 +0000 (13:09 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 4 Oct 2023 20:19:13 +0000 (13:19 -0700)
commit8a412c5c1cd6cc6c55e8b9b84fbb789fc395fe78
treed69dd2abb9235b55d4d393d4de5a6398db633449
parent93fb2776f43e3834796218ed77b237f85fdd10a9
libbpf: Fix syscall access arguments on riscv

Since commit 08d0ce30e0e4 ("riscv: Implement syscall wrappers"), riscv
selects ARCH_HAS_SYSCALL_WRAPPER so let's use the generic implementation
of PT_REGS_SYSCALL_REGS().

Fixes: 08d0ce30e0e4 ("riscv: Implement syscall wrappers")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/bpf/20231004110905.49024-2-bjorn@kernel.org
tools/lib/bpf/bpf_tracing.h