merge valgrind results

View: New views
8 Messages — Rating Filter:   Alert me  

merge valgrind results

by Osman, Ahmed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi All,

Is there a way to merge all runs of valgrind for the same executable in one file?

 

- Osman


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: merge valgrind results

by Paul Floyd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Osman, Ahmed wrote:
> Hi All,
>
> Is there a way to merge all runs of valgrind for the same executable in
> one file?

I use cat.

A+
Paul
--
Paul Floyd                 http://paulf.free.fr



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: merge valgrind results

by Osman, Ahmed :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Paul,

Thanks for your feedback but this will contain redundant information.

- Ahmed

-----Original Message-----
From: Paul Floyd [mailto:paulf@...]
Sent: Friday, October 30, 2009 10:54 AM
To: valgrind-users@...
Subject: Re: [Valgrind-users] merge valgrind results

Osman, Ahmed wrote:
> Hi All,
>
> Is there a way to merge all runs of valgrind for the same executable
in
> one file?

I use cat.

A+
Paul
--
Paul Floyd                 http://paulf.free.fr



------------------------------------------------------------------------
------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: merge valgrind results

by Dan Kegel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 30, 2009 at 10:53 AM, Paul Floyd <paulf@...> wrote:
>> Is there a way to merge all runs of valgrind for the same executable in
>> one file?
>
> I use cat.

It's worth diffing runs of valgrind for the next build of the same
executable, too.

For instance,
http://kegel.com/wine/valgrind/logs/2009-10-26-08.26/diff-d3d10_effect.txt
shows a diff that caught an invalid free on a new checkin.

- Dan

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: merge valgrind results

by Bugzilla from ashley@pittman.co.uk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-10-29 at 16:39 -0700, Osman, Ahmed wrote:
> Hi All,
>
> Is there a way to merge all runs of valgrind for the same executable
> in one file?

I've got a tool to do this, it's targeted at a very specific use-case
however so might not work for you.  It's designed for parallel jobs or
beowulf clusters but also works with multiple serial runs of the same
program.

You need to run the program with valgrind in xml mode and then run my
tool giving it a number of xml files which it will re-assemble into a
single output file containing all the errors from all the runs of the
program.

Let me know if you think this is what you are looking for and I'll share
the code with you.  It's open-source but I've never got around to
publishing it formally.

Ashley,

--

Ashley Pittman, Bath, UK.

Padb - A parallel job inspection tool for cluster computing
http://padb.pittman.org.uk


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: merge valgrind results

by Dan Kegel-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Oct 30, 2009 at 11:14 AM, Ashley Pittman <ashley@...> wrote:
> You need to run the program with valgrind in xml mode and then run my
> tool giving it a number of xml files which it will re-assemble into a
> single output file containing all the errors from all the runs of the
> program.
>
> Let me know if you think this is what you are looking for and I'll share
> the code with you.  It's open-source but I've never got around to
> publishing it formally.

Go for it.  I wrote one of those but also never posted it, and I dropped it on
the floor somewhere...

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: merge valgrind results

by Bugzilla from ashley@pittman.co.uk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2009-10-30 at 11:25 -0700, Dan Kegel wrote:
> Go for it.  I wrote one of those but also never posted it, and I dropped it on
> the floor somewhere...

Attached, use it like the following:

valgrind --xml=yes --xml-file=bob.0 ls
valgrind --xml=yes --xml-file=bob.1 ls
./vg_xmlmerge.pl bob.0 bob.1

This code is well over five years old now and was used in our automated
testing, one of the reasons I never polished it for public consumption
was that is uses XML::In which could take a long time to process xml
files, I had planned to re-write in using a proper xml parser although I
notice now that the performance of what's there is 10x better than it
was.

Ashley,

--

Ashley Pittman, Bath, UK.

Padb - A parallel job inspection tool for cluster computing
http://padb.pittman.org.uk


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users

vg_xmlmerge.pl (24K) Download Attachment

Re: merge valgrind results

by Paul Floyd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Osman, Ahmed wrote:
> Hi Paul,
>
> Thanks for your feedback but this will contain redundant information.

Hi

That doesn't bother me too much.

We run nonregression suites with Valgrind over the weekend. That covers
about half a dozen applications, and each test suite has something like
100 to 700 testcases, so each suite contains something like 1000 tests.

Like I said, I just cat everything together, and then use an app full of
regexps to parse the results, giving a summary of type of application,
type of error and call stack. I also generate a small file per testcase
with in the suppression file format to make it easier to add suppressions.

I keep the summaries so that I can perform diffs on the numbers of
errors and which testcases they appeared in (or disappeared from).

A+
Paul
--
Paul Floyd                 http://paulf.free.fr



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Valgrind-users mailing list
Valgrind-users@...
https://lists.sourceforge.net/lists/listinfo/valgrind-users