summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfche <fche>2008-03-20 17:58:06 +0000
committerfche <fche>2008-03-20 17:58:06 +0000
commit39e3139ab7d9422237b73773693617fff22aa67d (patch)
treed7454ab5b94c3f49e28f2a73efbf6c4a560104a7
parentced347a9531b726635fdccd012768afca15aed17 (diff)
downloadsystemtap-steved-39e3139ab7d9422237b73773693617fff22aa67d.tar.gz
systemtap-steved-39e3139ab7d9422237b73773693617fff22aa67d.tar.xz
systemtap-steved-39e3139ab7d9422237b73773693617fff22aa67d.zip
* clarify $variables available in .return probes
-rw-r--r--stapprobes.5.in18
1 files changed, 14 insertions, 4 deletions
diff --git a/stapprobes.5.in b/stapprobes.5.in
index 55fcb3c7..ce8ef52d 100644
--- a/stapprobes.5.in
+++ b/stapprobes.5.in
@@ -192,9 +192,10 @@ Here is a list of probe point families currently supported. The
variant places a probe near the beginning of the named function, so that
parameters are available as context variables. The
.B .return
-variant places a probe at the moment of return from the named function, so
-the return value is available as the "$return" context variable.
-The
+variant places a probe at the moment
+.B after
+the return from the named function, so the return value is available
+as the "$return" context variable. The
.B .inline
modifier for
.B .function
@@ -262,7 +263,7 @@ As an alternative, PATTERN may be a numeric constant, indicating an
only, absolute kernel addresses may be specified with the ".absolute"
suffix.
.PP
-Some of the source-level variables, such as function parameters,
+Some of the source-level context variables, such as function parameters,
locals, globals visible in the compilation unit, may be visible to
probe handlers. They may refer to these variables by prefixing their
name with "$" within the scripts. In addition, a special syntax
@@ -282,6 +283,15 @@ may be repeated to follow more levels of pointers.
$var[N]
indexes into an array. The index is given with a
literal number.
+.PP
+For ".return" probes, context variables other than the "$return"
+value itself are only available for the function call parameters.
+The expressions evaluate to the
+.IR entry-time
+values of those variables, since that is when a snapshot is taken.
+Other local variables are not generally accessible, since by the time
+a ".return" probe hits, the probed function will have already returned.
+
.SS USER-SPACE
Early prototype support for user-space probing is available in the