Skip to content

Commit 8a412c5

Browse files
Alexandre Ghitianakryiko
authored andcommitted
libbpf: Fix syscall access arguments on riscv
Since commit 08d0ce3 ("riscv: Implement syscall wrappers"), riscv selects ARCH_HAS_SYSCALL_WRAPPER so let's use the generic implementation of PT_REGS_SYSCALL_REGS(). Fixes: 08d0ce3 ("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
1 parent 93fb277 commit 8a412c5

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tools/lib/bpf/bpf_tracing.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,6 @@ struct pt_regs___arm64 {
362362
#define __PT_PARM7_REG a6
363363
#define __PT_PARM8_REG a7
364364

365-
/* riscv does not select ARCH_HAS_SYSCALL_WRAPPER. */
366-
#define PT_REGS_SYSCALL_REGS(ctx) ctx
367365
#define __PT_PARM1_SYSCALL_REG __PT_PARM1_REG
368366
#define __PT_PARM2_SYSCALL_REG __PT_PARM2_REG
369367
#define __PT_PARM3_SYSCALL_REG __PT_PARM3_REG

0 commit comments

Comments
 (0)