This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Find out the system calls statically?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]