This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Gcov parallel usage question
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Lee Moore <moore at imperas dot com>
- Cc: MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Mon, 07 Nov 2005 14:17:05 +0000
- Subject: Re: Gcov parallel usage question
- References: <5.0.0.25.2.20051107132341.00bb5868@pop3.demon.co.uk>
Lee Moore wrote:
Hi Nathan,
I hope you don't mind me contacting you directly, but I saw a posting
you made regarding gcov.
Do you know if it is OK to run programs instrumented with gcov in
parallel ?
gcov instrumentation is multi-process safe, but not multi-thread safe. The
multi-processing safety relies on OS level file locking, which is not available
on some systems.
My suspicion is this may cause a problem, basically for regression
testing purposes I need to run the same program many times, but I have
seen messages to the effect of "Invocation mismatch ...", followed by
references to the .gcda files.
If it is not possible to run in parallel, is there an 'hack' to perform
merges of .gcda files or anything like that you are aware of ?
gcov itself merges data.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk