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: no access to local variables in function


"Lentes, Bernd" <bernd.lentes@helmholtz-muenchen.de> writes:

> [...]
> idcc-devel:~/systemtap # stap -L 'kernel.function("tasklet_kill_immediate")'
> kernel.function("tasklet_kill_immediate@kernel/softirq.c:439")
>
> I don't see any local variable. What can I do ?

Local variables exist within functions, not at their entry (which is what
.function probes are for).  Use .statement probes for function-interior
probing (and thus access to variables there).

stap -L 'kernel.statement("tasklet_kill_immediate@kernel/softirq.c:*")'


- FChE


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