Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - gcov merge capability with mipsgcov_2.95.3 version: (5 Items)
   
gcov merge capability with mipsgcov_2.95.3 version  
Hi 

I am having a situation where in

for the same executable I am running two test cases after one reboot in between and hence i would get two *.da files 
with different lines of execution

but wanted to run gcov on consolidated or merged *.da files.

is there utility or any options to merge OR to carry out this operation?

thanks
Nagaraj
Re: gcov merge capability with mipsgcov_2.95.3 version  
Nagaraj naik wrote:
> Hi 
> 
> I am having a situation where in
> 
> for the same executable I am running two test cases after one reboot in between and hence i would get two *.da files 
with different lines of execution
> 
> but wanted to run gcov on consolidated or merged *.da files.
> 
> is there utility or any options to merge OR to carry out this operation?

There is no utility to merge two separate .da files. If you invoke your 
program several times it will try to write to the existing .da file and 
if the arcs match it will aggregate the data; otherwise it will 
overwrite the file.

Regards,

Ryan Mansfield
Re: gcov merge capability with mipsgcov_2.95.3 version  
>There is no utility to merge two separate .da files. If you invoke your 
>program several times it will try to write to the existing .da file and 
>if the arcs match it will aggregate the data; otherwise it will 
>overwrite the file.

Hi, 

I am not quite clear on "if the arcs match" can you please elaborate on this?

thanks.
Re: gcov merge capability with mipsgcov_2.95.3 version  
Nagaraj naik wrote:
>> There is no utility to merge two separate .da files. If you invoke your 
>> program several times it will try to write to the existing .da file and 
>> if the arcs match it will aggregate the data; otherwise it will 
>> overwrite the file.
> 
> Hi, 
> 
> I am not quite clear on "if the arcs match" can you please elaborate on this?

-fprofile-arcs instruments the possible arcs (branches) from one basic 
block to another. If these arcs have changed the counts cannot be 
accumulated. The data will not line up and the program flow will not 
make sense.

Regards,

Ryan Mansfield
Re: gcov merge capability with mipsgcov_2.95.3 version  
we have not changed the arcs in this case even though the *.da files are getting overwritten, its not accumalating.

i.e. we are using the same executeble which is compiled with compiler version - 2.95.3, for serveral test cases 
execuation,

Everytime we keep previously collected *.da files in place. but the new execution is completely overwriting the *.da 
files losing old test case data.

can we know what shall be done on this?
I would say this accumalating *.da files for different execution is basic feature.

please assit here!