This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: no access to local variables in function
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: "Lentes, Bernd" <bernd dot lentes at helmholtz-muenchen dot de>
- Cc: "'systemtap at sourceware dot org'" <systemtap at sourceware dot org>
- Date: Fri, 29 May 2015 14:34:32 -0400
- Subject: Re: no access to local variables in function
- Authentication-results: sourceware.org; auth=none
- References: <15785B7E063D464C86DD482FCAE4EBA501CAC8896EF4 at XCH11 dot scidom dot de>
"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