summaryrefslogtreecommitdiffstats
path: root/stapfuncs.5.in
diff options
context:
space:
mode:
Diffstat (limited to 'stapfuncs.5.in')
-rw-r--r--stapfuncs.5.in26
1 files changed, 8 insertions, 18 deletions
diff --git a/stapfuncs.5.in b/stapfuncs.5.in
index 496d5760..3802117a 100644
--- a/stapfuncs.5.in
+++ b/stapfuncs.5.in
@@ -23,32 +23,22 @@ example2:unknown ()
In function "example2", do something. There is no explicit return value
and take no parameters.
-.SS LOGGING
+.SS PRINTING
.TP
log:unknown (msg:string)
-Log the given string to the common trace buffer. Append an implicit
-end-of-line.
-
-.TP
-print:unknown (...)
-Print the given integer, string, or statistics value to
-the common trace buffer.
-
-.TP
-printf:unknown (fmt:string, ...)
-Like the C printf, except valid types are limited to string ("%s")
-and integer ("%d").
+Writes the given string to the common trace buffer. Append an implicit
+end-of-line. Deprecated. Please use the faster print functions.
.TP
warn:unknown (msg:string)
-Log the given string to the warning stream. Append an implicit end-of-line.
+Write the given string to the warning stream. Append an implicit end-of-line.
.I staprun
prepends the string "WARNING:".
.TP
error:unknown (msg:string)
-An error has occurred. Log the given string to the error stream.
+An error has occurred. Write the given string to the error stream.
Append an implicit end-of-line.
.I staprun
prepends the string "ERROR:".
@@ -120,10 +110,10 @@ string cannot be converted.
.TP
tokenize:string (str:string, delim:string)
Return the next token in the given str string, where the tokens are delimited
-by one of the characters in the delim string. If the str string is non-NULL,
-it returns the first token. If the str string is NULL, it returns the next
+by one of the characters in the delim string. If the str string is not blank,
+it returns the first token. If the str string is blank, it returns the next
token in the string passed in the previous call to tokenize. If no delimiter
-is found, the entire remaining str string is returned. Returns NULL when
+is found, the entire remaining str string is returned. Returns blank when
no more tokens are left.
.SS TIMESTAMP