A simple example of using ptrace to trace system calls