This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Find out the system calls statically?
- From: "River Wang" <jwangzju at gmail dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: Mon, 18 Aug 2008 09:55:45 -0400
- Subject: Re: Find out the system calls statically?
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=PpDB1Is/QyFwTSpqKR+ORHxeh8hIjDxsCIeOcUUokQk=; b=hrGrnmt7+vppJmLF5L39U92Tfg08MS0TIS74LAelSrqHN5iB8gT+N+hlD7ExeSLZiK OeuZF9NFb5Ql0tdsNCJPR4WfgOO1MQeFKYWb8IFnnmZQNXC0ooltyB3Zl6VFuVUGcRoq o79NKYFlOtOaR6NNow+KC9Ugn5diV6b9QRgaE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=DiviZ6NLVbM8KFiOZjwRSm+iT1E599uVo0a0L1913WDiGbHMFbfNPA/cBehHBHHhrj RgJLSIFzlPgRB7AuSUVo4iJbt83+NoqHLi7VjP4zrctoCXQTs/WcaShEIOF2l0cKOzDF DrOqA4ojmzVPEv8WV7mtOzajbJTSTyqu3rcpc=
- References: <77e29ea90808160916x2e3877a1gb1eeca2f782b725a@mail.gmail.com> <y0mr68n8xpo.fsf@ton.toronto.redhat.com>
Hi Frank:
Got it. Thanks for the reply.
Regards,
Jiang
On Sun, Aug 17, 2008 at 11:31 AM, Frank Ch. Eigler <fche@redhat.com> wrote:
> "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
>