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: probing based on kernel source


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


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