Check out my first novel, midnight's simulacra!

Ptrace

From dankwiki

Supported on both Linux and FreeBSD, ptrace(2) provides a mechanism for tracing processes through instructions, system calls, or signal deliveries. It is used by gdb and similar programs (including my ptracer).