January 2018
Intermediate to advanced
456 pages
12h 49m
English
Strace allows the monitoring of system calls of running processes into the Linux kernel. It uses the ptrace() system call to do so. This means that other programs that use ptrace(), such as gdb, will not run simultaneously.
Strace is a disruptive monitoring tool, and the process being monitored will slow down and create many more context switches. A generic way of running strace on a given program is:
strace -f -e <filter> -t -s<num> -o <log file>.strace <program>
The arguments are as follows:
Read now
Unlock full access