From af26b140348ba9989c63f36bb553862a0f75ffeb Mon Sep 17 00:00:00 2001 From: Jim Keniston Date: Thu, 29 May 2008 17:13:38 -0700 Subject: Fix PR 6582: verify CONTEXT->regs in [u_]register() --- stapfuncs.5.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'stapfuncs.5.in') 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) -- cgit