|
From: Owen O'M. <ow...@em...> - 2003-11-03 19:04:46
|
I wrote a skin that writes an xml report and so I didn't want any
extra non-xml stuff in the log file. Fortunately, -q does a pretty
good job of keeping valgrind quiet. I just need to prevent the:
==11666==
==11666== My PID = 11666, parent PID = 28045. Prog and args are:
==11666== a.out
message from coming out. Therefore, I put in the following change that
adds an extra condition on the message above being printed. Writing
error logs in specific formats is a handy thing to be able to do and
Valgrind probably deserves a "better" solution so that the skin can
request a quiet run.
Thanks,
Owen
PS. I can post my trivial skin if there is any interest. Currently it
just prints the pattern of pthread lock accesses. The output log looks
like:
<run>
...
<thread-create parent="1" child="2"/>
<mutex-request thread="1" mutex="0x08049C60"/>
<mutex-lock thread="1" mutex="0x08049C60"/>
<mutex-request thread="1" mutex="0x40270A18"/>
<mutex-lock thread="1" mutex="0x40270A18"/>
<mutex-unlock thread="1" mutex="0x40270A18"/>
...
</run>
*** coregrind/vg_main.c~ Mon Nov 3 10:50:41 2003
--- coregrind/vg_main.c Mon Nov 3 10:51:16 2003
***************
*** 1188,1194 ****
"Copyright (C) 2000-2003, and GNU GPL'd, by Julian
Seward.");
}
! if (VG_(clo_log_to) != VgLogTo_Fd) {
VG_(message)(Vg_UserMsg, "");
VG_(message)(Vg_UserMsg,
"My PID = %d, parent PID = %d. Prog and args are:",
--- 1188,1194 ----
"Copyright (C) 2000-2003, and GNU GPL'd, by Julian
Seward.");
}
! if (VG_(clo_verbosity) > 0 && VG_(clo_log_to) != VgLogTo_Fd) {
VG_(message)(Vg_UserMsg, "");
VG_(message)(Vg_UserMsg,
"My PID = %d, parent PID = %d. Prog and args are:",
|
|
From: Nicholas N. <nj...@ca...> - 2003-11-10 13:27:26
|
On Mon, 3 Nov 2003, Owen O'Malley wrote: > I wrote a skin that writes an xml report and so I didn't want any > extra non-xml stuff in the log file. Fortunately, -q does a pretty > good job of keeping valgrind quiet. I just need to prevent the: > > ==11666== > ==11666== My PID = 11666, parent PID = 28045. Prog and args are: > ==11666== a.out Committed to HEAD, thanks. N |