4 ms·
> The request field selects a specific Ptrace function, just like the ioctl(2) interface. For strace, only two are needed: PTRACE_TRACEME: This process is to b
by saagarjha 8y ago
> The request field selects a specific Ptrace function, just like the ioctl(2) interface. For strace, only two are needed:
PTRACE_TRACEME: This process is to be traced by its parent.
PTRACE_SYSCALL: Continue, but stop at the next system call entrance or exit.
PTRACE_GETREGS: Get a copy of the tracee’s registers.
You have three things here ;)