[Regarding GCOV].gcda:stamp mismatch with notes file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi GCC Gcov experts,

I would like to know if the stamp value (present in gcno files) generated during build can get modified during a compilation /recompilation (when multiple components are involved through Makefiles) or
can the gcda stamp value get modified during the gcda collection ( __gcov_dump() API invocation ) ?
Since with gcc 11.4.0 we see gcda stamps mismatch with gcno stamps , I'm trying to figure out when any of these values can get modified (considering a gcov enabled build and then the testing of the image built). In my project case, not all gcda stamps mismatch with respective gcno stamps. Some of them show coverage % without any stamp mismatch issue.

For eg, for a problematic stamp case (quoting the stamp value from the output of gcov_dump tool for the respective source file.gcda and gcno files):
C-src-filename.gcda:stamp 2912455990 

C-src-filename.gcno:stamp 2912494680    

If we see here, the gcno stamp value seems higher and how do we try to debug the case here ?
Is gcno stamp getting modified during the build or is gcda stamp getting modified (after testing and during collection of gcda files from device) ? 

The context of this query can be understood from email below and a previous bugzilla link.

Awaiting some inputs from gcov experts.

Thanks,
Gejoe 
From: "Gejoe Daniel"<gejoed@xxxxxxxxxxxxxx>
Sent: Mon, 29 Apr 2024 17:16:23
To: "gcc-help@xxxxxxxxxxx"<gcc-help@xxxxxxxxxxx>
Subject: Re: [Regarding GCOV].gcda:stamp mismatch with notes file

Hi all,

Reaching out to the helpers list to know if someone can give any inputs.

Thanks,
Gejoe

From: "Gejoe Daniel"<gejoed@xxxxxxxxxxxxxx>
Sent: Thu, 25 Apr 2024 12:15:58
To: <gcc@xxxxxxxxxxx>,<gcc-help@xxxxxxxxxxx>
Subject: [Regarding GCOV].gcda:stamp mismatch with notes file

Hi team,
The following is my query posted but would need more inputs :
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114751

The gcov tool which was working so far seems to fail with our latest branch where gcc is 11.4.0 and hence we wanted to sort this out by getting the right help as early as possible.

Awaiting prompt reply.

Thanks to the GCC team for all the help !

Regards,
Gejoe



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux