diff options
author | hunt <hunt> | 2005-09-04 09:40:46 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-09-04 09:40:46 +0000 |
commit | 6c100036afcfa4d038f7a7af83bcbcb28f905d35 (patch) | |
tree | c5ca93e96ad425446c1e1be02f0ecf21509a8a6e /stapfuncs.5.in | |
parent | e479d1f47a8d83737418674bb03f780220bc4ff4 (diff) | |
download | systemtap-steved-6c100036afcfa4d038f7a7af83bcbcb28f905d35.tar.gz systemtap-steved-6c100036afcfa4d038f7a7af83bcbcb28f905d35.tar.xz systemtap-steved-6c100036afcfa4d038f7a7af83bcbcb28f905d35.zip |
2005-09-04 Martin Hunt <hunt@redhat.com>
* testsuite/buildok/context_test.stp: New test.
* tapset/logging.stp (log): Call _stp_printf().
* stapfuncs.5.in: Add contextinfo funcs.
* tapset/context.stp: Minor cleanup.
Diffstat (limited to 'stapfuncs.5.in')
-rw-r--r-- | stapfuncs.5.in | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/stapfuncs.5.in b/stapfuncs.5.in index e4eedb94..212e5193 100644 --- a/stapfuncs.5.in +++ b/stapfuncs.5.in @@ -31,6 +31,10 @@ Log the given string to the kernel's printk buffer, at KERN_INFO severity. Append an implicit end-of-line. .TP +print:unknown (msg:string) +Print the given string to the common trace buffer. + +.TP log:unknown (msg:string) Log the given string to the common trace buffer. Append an implicit end-of-line. @@ -90,8 +94,56 @@ Return the number of milliseconds since the UNIX epoch. gettimeofday_s:long () Return the number of seconds since the UNIX epoch. -.\" .SS CONTEXTINFO +.SS CONTEXTINFO + +.TP +execname:string () +Returns the name of the current process. +.TP +pexecname:string() +Returns the name of the parent process. + +.TP +pid:long () +Returns the current pid. + +.TP +ppid:long () +Returns the current pid. + +.TP +uid:long () +Returns the uid of the current process. + +.TP +euid:long () +Returns the effective uid of the current process. + +.TP +gid:long () +Returns the gid of the current process. + +.TP +egid:long () +Returns the effective gid of the current process. + +.TP +print_regs:unknown () +Prints a register dump. + +.TP +print_backtrace:unknown () +Prints a symbolic backtrace. Use with care. May be timeconsuming. + +.TP +backtrace:string () +Returns a string of hex addresses that are a backtrace of the stack. +May be truncated due to maximum string length. + +.TP +print_stack(bt:string) +Does a symbolic lookup of the addresses in bt and prints one per line. .SH FILES .nh |