syscall.sh / s390x / ptrace

ptrace

process trace

sys_ptrace(long request, long pid, unsigned long addr, unsigned long data)
number26 (0x1a)
abicommon
entry pointsys_ptrace
sinceLinux 4.16
man pageptrace(2)
sourceelixir.bootlin.com

Registers

registervalue
r126, the syscall number
r2long request
r3long pid
r4unsigned long addr
r5unsigned long data
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

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