syscall.sh / xtensa / ptrace

ptrace

process trace

sys_ptrace(long request, long pid, unsigned long addr, unsigned long data)
number160 (0xa0)
abicommon
entry pointsys_ptrace
sinceLinux 5.0
man pageptrace(2)
sourceelixir.bootlin.com

Registers

registervalue
a2160, the syscall number
a6long request
a3long pid
a4unsigned long addr
a5unsigned long data
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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