no access to local variables in function

Frank Ch. Eigler fche@redhat.com
Fri May 29 18:34:00 GMT 2015


"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



More information about the Systemtap mailing list