From e32551b18f4560056d2d482f5e1505b1b98fa82a Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 29 Mar 2005 18:07:58 +0000 Subject: *** empty log message *** --- runtime/docs/html/group__scbuf.html | 122 ++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 runtime/docs/html/group__scbuf.html (limited to 'runtime/docs/html/group__scbuf.html') diff --git a/runtime/docs/html/group__scbuf.html b/runtime/docs/html/group__scbuf.html new file mode 100644 index 00000000..c5e0d6e0 --- /dev/null +++ b/runtime/docs/html/group__scbuf.html @@ -0,0 +1,122 @@ + + +SystemTap: Scratch Buffer + + + +
Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages
+

Scratch Buffer

Scratch Buffer Functions. +More... + + + + + + + + + + + + + + + + + + +

Defines

+#define STP_BUF_LEN   8191
 Maximum size of buffer, not including terminating NULL.

Functions

void _stp_sprint (const char *fmt,...)
 Sprint into the scratch buffer.
+void _stp_sprint_str (const char *str)
void _stp_scbuf_clear (void)
 Clear the scratch buffer.

Variables

+char _stp_scbuf [8191+1]
 Scratch buffer for printing, building strings, etc.
+

Detailed Description

+Scratch Buffer Functions. +

+The scratch buffer is for collecting output before storing in a map, printing, etc. This is a per-cpu static buffer. It is necessary because of the limited stack space available in the kernel.


Function Documentation

+

+ + + + +
+ + + + + + + + + +
void _stp_scbuf_clear void   ) 
+
+ + + + + +
+   + + +

+Clear the scratch buffer. +

+Output from _stp_sprint() will accumulate in the buffer until this is called. +

+Definition at line 59 of file scbuf.c. +

+References _stp_scbuf, and STP_BUF_LEN.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
void _stp_sprint const char *  fmt,
  ...
+
+ + + + + +
+   + + +

+Sprint into the scratch buffer. +

+Like printf, except output goes into _stp_scbuf, which will contain the null-terminated output. Safe because overflowing _stp_scbuf is not allowed. Size is limited by length of scratch buffer, STP_BUF_LEN.

+

Parameters:
+ + +
fmt A printf-style format string followed by a variable number of args.
+
+
See also:
_stp_scbuf_clear
+ +

+Definition at line 32 of file scbuf.c. +

+References _stp_scbuf, and STP_BUF_LEN. +

+Referenced by _stp_symbol_sprint().

+ -- cgit