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: Help needed


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


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