No worries. You're looking for strace.
Evan Robert Flynn writes:
> Hello CSSAers,
> So here's what I want to do. I want to write a program in C that
> makes some calls to the C library. Then when I run it, I will get to
> read a log of the call stack of system calls it made. (A system call
> is a function that runs in kernel mode that a user mode program can
> access through a system call interface.)
> I've read that Dtrace can do this, but AFAIK it only works on Solaris.
> Do you know about a Linux equivalent, and has anyone tried it?
> Maybe Gary knows? :) :)