Find out the system calls statically?

Frank Ch. Eigler fche@redhat.com
Sun Aug 17 15:33:00 GMT 2008


"River Wang" <jwangzju@gmail.com> writes:

> I know that systemtap can monitor the system calls dynamically. I
> just wondering if it also supports some sort of static analysis so
> that I can find ALL the system calls that will be called by a
> program. [...]

If the program in question is not expected to be too sneaky, you could
"nm -u" the object files to look for glibc syscall wrapper calls.  If
it's sneaky (inline assembly or even self-modifying code), you cannot.

- FChE



More information about the Systemtap mailing list