diff options
author | Ananth N Mavinakayanahalli <ananth@in.ibm.com> | 2009-04-21 17:08:31 +0530 |
---|---|---|
committer | Ananth N Mavinakayanahalli <ananth@in.ibm.com> | 2009-04-21 17:08:31 +0530 |
commit | 94c3c803ea90e4d9447b9a28051ea4681c535d57 (patch) | |
tree | 0b141124a41954ee2a3b2a82685a91f38d5207ee /stapprobes.3stap.in | |
parent | e6fe60e7ac2b7068b97c828cee2502d34e77d89c (diff) | |
download | systemtap-steved-94c3c803ea90e4d9447b9a28051ea4681c535d57.tar.gz systemtap-steved-94c3c803ea90e4d9447b9a28051ea4681c535d57.tar.xz systemtap-steved-94c3c803ea90e4d9447b9a28051ea4681c535d57.zip |
Documentation updates for kprobe.function family
Diffstat (limited to 'stapprobes.3stap.in')
-rw-r--r-- | stapprobes.3stap.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/stapprobes.3stap.in b/stapprobes.3stap.in index a8988c71..e60a8fe4 100644 --- a/stapprobes.3stap.in +++ b/stapprobes.3stap.in @@ -64,6 +64,7 @@ syscall.* kernel.function("no_such_function") ? module("awol").function("no_such_function") ! signal.*? if (switch) +kprobe.function("foo") .ESAMPLE @@ -378,6 +379,40 @@ Other local variables are not generally accessible, since by the time a ".return" probe hits, the probed function will have already returned. +.SS DWARFLESS +In absence of debugging information, entry & exit points of kernel & module +functions can be probed using the "kprobe" family of probes. +However, these do not permit looking up the arguments / local variables +of the function. +Following constructs are supported : +.SAMPLE +kprobe.function(FUNCTION) +kprobe.function(FUNCTION).return +kprobe.module(NAME).function(FUNCTION) +kprobe.module(NAME).function(FUNCTION).return +kprobe.statement.(ADDRESS).absolute +.ESAMPLE +.PP +Probes of type +.B function +are recommended for kernel functions, whereas probes of type +.B module +are recommended for probing functions of the specified module. +In case the absolute address of a kernel or module function is known, +.B statement +probes can be utilized. +.PP +Note that +.I FUNCTION +and +.I MODULE +names +.B must not +contain wildcards, or the probe will not be registered. +Also, statement probes must be run under guru-mode only. + + + .SS USER-SPACE Early prototype support for user-space probing is available in the form of a non-symbolic probe point: |