diff options
author | hunt <hunt> | 2005-05-26 07:43:25 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-05-26 07:43:25 +0000 |
commit | abedf3db3774b54ee4ed227e3ae69e55fb0ff76c (patch) | |
tree | 77bf164eda3f977ba0e964c92493ea8c248fb6f3 /runtime/print.c | |
parent | 3750373a50833fcda902407e5b260cb8c5799ad6 (diff) | |
download | systemtap-steved-abedf3db3774b54ee4ed227e3ae69e55fb0ff76c.tar.gz systemtap-steved-abedf3db3774b54ee4ed227e3ae69e55fb0ff76c.tar.xz systemtap-steved-abedf3db3774b54ee4ed227e3ae69e55fb0ff76c.zip |
2005-05-26 Martin Hunt <hunt@redhat.com>
* current.c (_stp_sprint_regs): Implement for i386.
* sym.c (_stp_symbol_sprint): Check name before trying to
print it.
(_stp_symbol_print): Change to macro that calls _stp_symbol_sprint().
Diffstat (limited to 'runtime/print.c')
-rw-r--r-- | runtime/print.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/runtime/print.c b/runtime/print.c index 44776578..e9847ef8 100644 --- a/runtime/print.c +++ b/runtime/print.c @@ -64,9 +64,10 @@ void _stp_print_flush (void) static char _stp_pbuf[NR_CPUS][STP_PRINT_BUF_LEN + STP_PRINT_BUF_START + 1]; -/** Send the print buffer now. - * Output accumulates in the print buffer until this is called. - * Size is limited by length of print buffer, #STP_PRINT_BUF_LEN. +/** Send the print buffer to the transport now. + * Output accumulates in the print buffer until it + * is filled, or this is called. This MUST be called before returning + * from a probe or accumulated output in the print buffer will be lost. */ void _stp_print_flush (void) @@ -91,10 +92,7 @@ void _stp_print_flush (void) /** Print into the print buffer. * Like printf, except output goes to the print buffer. * Safe because overflowing the buffer is not allowed. - * Size is limited by length of print buffer, #STP_PRINT_BUF_LEN. * - * @param fmt A printf-style format string followed by a - * variable number of args. * @sa _stp_print_flush() */ #define _stp_printf(args...) _stp_sprintf(_stp_stdout,args) @@ -109,7 +107,6 @@ void _stp_print_flush (void) /** Write a C string into the print buffer. * Copies a string into a print buffer. * Safe because overflowing the buffer is not allowed. - * Size is limited by length of print buffer, #STP_PRINT_BUF_LEN. * This is more efficient than using _stp_printf() if you don't * need fancy formatting. * @@ -122,7 +119,6 @@ void _stp_print_flush (void) /** Write a String into the print buffer. * Copies a String into a print buffer. * Safe because overflowing the buffer is not allowed. - * Size is limited by length of print buffer, #STP_PRINT_BUF_LEN. * This is more efficient than using _stp_printf() if you don't * need fancy formatting. * |