probing based on kernel source
Wenji Huang
wenji.huang@oracle.com
Tue Sep 9 04:51:00 GMT 2008
Jun Koi wrote:
> Hi,
>
> Is it possible to probe a place coresponding to a particular line of a
> particular file in Linux kernel souce code? If so, what is the syntax?
>
> Thanks a lot,
> Jun
See reference
http://sourceware.org/systemtap/langref/
4.2.2 kernel.statement, module().statement
The .statement variant places a probe at the exact spot, exposing those
local variables that are visible there.
General syntax:
kernel.statement("func@file:linenumber")
module("modname").statement("func@file:linenumber")
Example:
# Refers to the statement at line 2917 within the
# kernel/sched.c file:
kernel.statement("*@kernel/sched.c:2917")
Regards,
Wenji
More information about the Systemtap
mailing list