summaryrefslogtreecommitdiffstats
path: root/stapfuncs.5.in
diff options
context:
space:
mode:
authorJim Keniston <jkenisto@us.ibm.com>2008-05-29 17:13:38 -0700
committerJim Keniston <jkenisto@us.ibm.com>2008-05-29 17:13:38 -0700
commitaf26b140348ba9989c63f36bb553862a0f75ffeb (patch)
treef0285387a59482c498a80377a7537216c45db2f4 /stapfuncs.5.in
parent8437928b8d07b6b77fc5f886b6900eb9cfd4a0d0 (diff)
downloadsystemtap-steved-af26b140348ba9989c63f36bb553862a0f75ffeb.tar.gz
systemtap-steved-af26b140348ba9989c63f36bb553862a0f75ffeb.tar.xz
systemtap-steved-af26b140348ba9989c63f36bb553862a0f75ffeb.zip
Fix PR 6582: verify CONTEXT->regs in [u_]register()
Diffstat (limited to 'stapfuncs.5.in')
-rw-r--r--stapfuncs.5.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/stapfuncs.5.in b/stapfuncs.5.in
index 04e5ea17..6d4546ab 100644
--- a/stapfuncs.5.in
+++ b/stapfuncs.5.in
@@ -345,6 +345,11 @@ Return the maximum number of file handles for the given task.
.SS CPU REGISTERS
.TP
+registers_valid:long ()
+Return 1 if register() and u_register() can be used
+in the current context, or 0 otherwise.
+For example, registers_valid() returns 0 when called from a begin or end probe.
+.TP
register:long (name:string)
Return the value of the named CPU register,
as it was saved when the current probe point was hit.
@@ -368,7 +373,7 @@ segment registers: xcs/cs, xss/ss.
For powerpc, the following names are recognized:
r1, r2... r31, nip, msr, orig_gpr3, ctr, link, xer, ccr, softe, trap,
-dar, dsisr, result;
+dar, dsisr, result.
.TP
u_register:long (name:string)