This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Find out the system calls statically?
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: "River Wang" <jwangzju at gmail dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Sun, 17 Aug 2008 11:31:31 -0400
- Subject: Re: Find out the system calls statically?
- References: <77e29ea90808160916x2e3877a1gb1eeca2f782b725a@mail.gmail.com>
"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