Strace

strace is used to capture system calls for a particular program.