strace

Replay a program's system calls step by step and watch what happens in the kernel: processes, file descriptor tables, open file descriptions, files and pipes.

Generate a trace with strace -f -o trace.log ./a.out

Examples

Only a subset of syscalls is drawn (open, close, read, write, lseek, dup, pipe, fork, exec, wait…); the others are listed in the timeline. Beerware licence — github.com/allali/xstrace