strace
How to observe the system calls of a program