|
From: Madhan S. <mad...@gm...> - 2009-08-06 08:53:37
|
Hi, This is about the 3.5.0 version from the svn trunk (aug 4 2009). When I use the following options, --time-stamp=yes --xml=yes --xml-file=/tmp/valgrind_myapp.xml%p -v a lot of output is thrown to STDOUT and the xml content goes to the file. When I add the following option --log-file=/tmp/valgrind_myapp.xml%p everything including the xml content goes to this file. The xml content is there but there is some more content from "-v" before and after. When I give 2 different file names --log-file=/tmp/valgrind_myapp.pid%p --xml-file=/tmp/valgrind_myapp.xml%p then xml-file is ignored and everything goes to log-file. In short, I want the xml content to go to --xml-file and everything else to --log-file, the file names being different. Is there a way to do this. Thanks, Madhan. |
|
From: Julian S. <js...@ac...> - 2009-08-06 09:02:52
|
> I want the xml content to go to --xml-file and everything else
> to --log-file, the file names being different. Is there a way to do this.
That's how it is supposed to work already!
--xml=yes --log-file=/tmp/valgrind_myapp.pid%p
--xml-file=/tmp/valgrind_myapp.xml%p
should do what you want.
J
|
|
From: Madhan S. <mad...@gm...> - 2009-08-06 09:31:41
|
It sure does Julian, I messed something for sure in my earlier trial. Thanks, Madhan. On Thu, Aug 6, 2009 at 2:42 PM, Julian Seward <js...@ac...> wrote: > > > I want the xml content to go to --xml-file and everything else > > to --log-file, the file names being different. Is there a way to do this. > > That's how it is supposed to work already! > > --xml=yes --log-file=/tmp/valgrind_myapp.pid%p > --xml-file=/tmp/valgrind_myapp.xml%p > > should do what you want. > > J > |
|
From: Julian S. <js...@ac...> - 2009-08-06 09:48:02
|
Just to clarify .. the intended use scenario is:
-q --xml=yes --log-file=/tmp/valgrind_myapp.pid%p
--xml-file=/tmp/valgrind_myapp.xml%p
That means:
* XML goes into /tmp/valgrind_myapp.xml%p
* the -q makes the normal output completely silent, unless there is
a critical error in Valgrind itself (eg, assertion failure, or
failure to read debug info from your executable)
Hence valgrind_myapp.pid%p should normally be empty. If it's not,
then it contains some critical error which the user should be made
aware of.
I think this is simple -- it means you don't have to do any
filtering/searching/analysis of valgrind_myapp.pid%p, you only
need to distinguish empty vs nonempty.
J
On Thursday 06 August 2009, Madhan Sadasivam wrote:
> It sure does Julian, I messed something for sure in my earlier trial.
>
> Thanks,
> Madhan.
>
> On Thu, Aug 6, 2009 at 2:42 PM, Julian Seward <js...@ac...> wrote:
> > > I want the xml content to go to --xml-file and everything else
> > > to --log-file, the file names being different. Is there a way to do
> > > this.
> >
> > That's how it is supposed to work already!
> >
> > --xml=yes --log-file=/tmp/valgrind_myapp.pid%p
> > --xml-file=/tmp/valgrind_myapp.xml%p
> >
> > should do what you want.
> >
> > J
|
|
From: Madhan S. <mad...@gm...> - 2009-08-06 12:30:28
|
This is a very helpful point. Thanks, Madhan. On Thu, Aug 6, 2009 at 3:27 PM, Julian Seward <js...@ac...> wrote: > > Just to clarify .. the intended use scenario is: > > -q --xml=yes --log-file=/tmp/valgrind_myapp.pid%p > --xml-file=/tmp/valgrind_myapp.xml%p > > That means: > > * XML goes into /tmp/valgrind_myapp.xml%p > > * the -q makes the normal output completely silent, unless there is > a critical error in Valgrind itself (eg, assertion failure, or > failure to read debug info from your executable) > > Hence valgrind_myapp.pid%p should normally be empty. If it's not, > then it contains some critical error which the user should be made > aware of. > > I think this is simple -- it means you don't have to do any > filtering/searching/analysis of valgrind_myapp.pid%p, you only > need to distinguish empty vs nonempty. > > J > > > On Thursday 06 August 2009, Madhan Sadasivam wrote: > > It sure does Julian, I messed something for sure in my earlier trial. > > > > Thanks, > > Madhan. > > > > On Thu, Aug 6, 2009 at 2:42 PM, Julian Seward <js...@ac...> wrote: > > > > I want the xml content to go to --xml-file and everything else > > > > to --log-file, the file names being different. Is there a way to do > > > > this. > > > > > > That's how it is supposed to work already! > > > > > > --xml=yes --log-file=/tmp/valgrind_myapp.pid%p > > > --xml-file=/tmp/valgrind_myapp.xml%p > > > > > > should do what you want. > > > > > > J > > > |