System call tracing; strace with pid

Copied directly from ubuntu wiki, want to store here so I dont lose it

strace -Ff -tt -p <PID> 2>&1 | tee strace-<program>.log

edit: better way that creates a file per process/child process

strace -f -ff -tt -p <PID> -o strace.log

This will create files for each child process in addition to the main process, named strace.log.<PID>

Leave a Reply

Your email address will not be published. Required fields are marked *