public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* warning/error message mixed with trace data
@ 2006-09-26  9:01 Li Guanglei
  2006-09-26 13:53 ` Martin Hunt
  0 siblings, 1 reply; 2+ messages in thread
From: Li Guanglei @ 2006-09-26  9:01 UTC (permalink / raw)
  To: systemtap; +Cc: Tom Zanussi

Hi,

   Today I tried the latest CVS and found the error/warning messages 
logged by _stp_warn() and _stp_error() are now mixed with the normal 
trace data. But I expected those these error/warn message won't 
disturb the trace data, or else some post-processing tools, such as 
lket-b2a will not be able to recognize and process trace data.

   Here is a patch, it will make _stp_warn()/_stp_error() to behave as 
before. please take a review:

Index: runtime/io.c
===================================================================
RCS file: /cvs/systemtap/src/runtime/io.c,v
retrieving revision 1.24
diff -u -r1.24 io.c
--- runtime/io.c        15 Jan 2006 17:26:19 -0000      1.24
+++ runtime/io.c        26 Sep 2006 08:55:49 -0000
@@ -59,8 +59,10 @@
  #ifdef STP_RELAYFS
                 if (type != DBUG)
                         _stp_write(STP_OOB_DATA, buf, start + num + 1);
-               _stp_string_cat_cstr(_stp_stdout,buf);
-               _stp_print_flush();
+               else {
+                       _stp_string_cat_cstr(_stp_stdout,buf);
+                       _stp_print_flush();
+               }
  #else
                 if (type != DBUG)
                         _stp_write(STP_OOB_DATA, buf, start + num + 1);
~

- Guanglei

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: warning/error message mixed with trace data
  2006-09-26  9:01 warning/error message mixed with trace data Li Guanglei
@ 2006-09-26 13:53 ` Martin Hunt
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Hunt @ 2006-09-26 13:53 UTC (permalink / raw)
  To: Li Guanglei; +Cc: systemtap, Tom Zanussi

On Tue, 2006-09-26 at 17:03 +0800, Li Guanglei wrote:
> Hi,
> 
>    Today I tried the latest CVS and found the error/warning messages 
> logged by _stp_warn() and _stp_error() are now mixed with the normal 
> trace data. 

Thanks for finding that. I missed that one.  The IO is now the same
regardless of if you use relayfs, so I removed the whole ifdef.

Martin



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-26 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-26  9:01 warning/error message mixed with trace data Li Guanglei
2006-09-26 13:53 ` Martin Hunt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).