This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Help needed
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: David Wang <kernel at mecro dot ca>
- Cc: systemtap at sources dot redhat dot com
- Date: Fri, 30 Oct 2009 15:18:46 -0400
- Subject: Re: Help needed
- References: <d754cf670910300730o27d1f9a1ve379d3b50e8815d5@mail.gmail.com> <20091030144050.GB14718@redhat.com> <d754cf670910300919n49d9b176ob66ac6bc676203c5@mail.gmail.com> <d754cf670910301143h5aae149euedf5c366f79d5202@mail.gmail.com>
- Reply-to: systemtap at sources dot redhat dot com
Hi -
(cc: added, please use in the future)
On Fri, Oct 30, 2009 at 11:43:01AM -0700, David Wang wrote:
> Can I print local variables in the kernel using systemtap?
Sure. You can print an individual $var (or a pretty-printed
form of all variables in scope with $$vars). The trick is the
scoping: you would need to use a .statement("...") rather than
.function() probe to identify an address or file.c:line# of the
statement in question.
- FChE