syscall.sh / riscv64 / ptrace

ptrace

process trace

sys_ptrace(long request, long pid, unsigned long addr, unsigned long data)
number117 (0x75)
abicommon
entry pointsys_ptrace
sinceLinux 4.15
man pageptrace(2)
sourceelixir.bootlin.com

Registers

registervalue
a7117, the syscall number
a0long request
a1long pid
a2unsigned long addr
a3unsigned long data
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/ptrace