diff options
Diffstat (limited to 'stapfuncs.5.in')
-rw-r--r-- | stapfuncs.5.in | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/stapfuncs.5.in b/stapfuncs.5.in index 04e5ea17..acfb42f9 100644 --- a/stapfuncs.5.in +++ b/stapfuncs.5.in @@ -252,6 +252,9 @@ Return the probe point's module name, if known. target:long () Return the pid of the target process. .TP +user_mode:long () +Return 1 if the probe point occurred in user-mode. +.TP is_return:long () Return 1 if the probe point is a return probe. Deprecated. @@ -345,6 +348,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 +376,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) @@ -634,6 +642,20 @@ or SIG_ERR, it will return the address of the handler. signal_str(num) Returns the string representation of the given signal number. +.SS DEVICE +.TP +MAJOR:long(dev:long) +Extracts the major device number from a kernel device number (kdev_t). +.TP +MINOR:long(dev:long) +Extracts the minor device number from a kernel device number (kdev_t). +.TP +MKDEV:long(major:long, minor:long) +Creates a value that can be compared to a kernel device number (kdev_t). +.TP +usrdev2kerndev:long(dev:long) +Converts a user-space device number into the format used in the kernel. + .SH FILES .nh .IR @prefix@/share/systemtap/tapset |