[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-31 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #24 from Gejoe --- Thank you Martin for all the info. Kindly bear with me for the delayed acknowledgement.

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-28 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #23 from Martin Liška --- > So, for either a one time call of __gcov_dump (though we may attempt to call > __gcov_dump many times) or at the exit of the program execution, the merge > of profile happens due to which __gcov_reset doe

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #22 from CVS Commits --- The master branch has been updated by Martin Liska : https://gcc.gnu.org/g:d2a913c76f41692fd0bb955d1768f462133d813a commit r12--gd2a913c76f41692fd0bb955d1768f462133d813a Author: Martin Liska Date: Fr

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-28 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #21 from Gejoe --- (In reply to Martin Liška from comment #20) > > I'm trying to understand line #22 to #26 specifically of .c.gcov file(as > > shown in commment #16. Let me know if the steps followed in compilation or > > execution

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-28 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #20 from Martin Liška --- > I'm trying to understand line #22 to #26 specifically of .c.gcov file(as > shown in commment #16. Let me know if the steps followed in compilation or > execution had any thing wrong. What is wrong with th

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-27 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #19 from Gejoe --- Just to add on : The a.out was run twice and hence the value of 20 against line # 19, 29 of .c.gcov file(as shown in commment #16). Let me know if anything is not clear.

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-27 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #18 from Gejoe --- (In reply to Martin Liška from comment #14) > (In reply to Gejoe from comment #13) > > I modified my sample-prog.c file just by adding a line of __gcov_reset > > before the while loop. > > > > Can you please cr

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-27 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #17 from Gejoe --- Created attachment 50882 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50882&action=edit sample-prog.i file Preprocessed file contents.

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-27 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #16 from Gejoe --- Created attachment 50881 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50881&action=edit sample-prog.c edited to show __gcov_reset call. The steps used for compiling and running the attached .c file are as

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-27 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #15 from Martin Liška --- > I'm trying to now when would __gcov_reset help us in seeing the counter > values reset to # instead of old data(numbers like 4,1,3, etc in .c.gcov > file). Note that .gcda profiles are always merged a

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-27 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #14 from Martin Liška --- (In reply to Gejoe from comment #13) > I modified my sample-prog.c file just by adding a line of __gcov_reset > before the while loop. > Can you please create a test-case that does not need human interac

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-27 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #13 from Gejoe --- I modified my sample-prog.c file just by adding a line of __gcov_reset before the while loop. However after a.out run , the sample-prog.c.gcov file was still showing the counters though I didn't give 'g' for __g

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-26 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #12 from Gejoe --- Thanks for all the info. > Btw. why do you need calling __gcov_dump and __gcov_reset manually? How is > your training run special? Actually I work for a firm where the program runs on a device continually and we

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-26 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 Martin Liška changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #10 from CVS Commits --- The master branch has been updated by Martin Liska : https://gcc.gnu.org/g:403bb89bd7f4ec03d4dcbdf8668d0187358631a0 commit r12-1063-g403bb89bd7f4ec03d4dcbdf8668d0187358631a0 Author: Martin Liska Date: Tu

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-26 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #9 from Martin Liška --- (In reply to Gejoe from comment #8) > (In reply to Martin Liška from comment #6) > > > Yes, __gcov_reset is supposed to be called at the beginning when an > > application wants to start > > profiling. Again,

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-25 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #8 from Gejoe --- (In reply to Martin Liška from comment #6) > Yes, __gcov_reset is supposed to be called at the beginning when an > application wants to start > profiling. Again, you don't need to call it manually. But reset comes

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-25 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #7 from Martin Liška --- > Looking at line 25, it doesn't show the line is hit (by giving 'r' character > during a.out run) nor are the counter values reset for the other lines. The > count of 4,3,2 are seen for some lines because of

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-25 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #6 from Martin Liška --- > So, I understand that __gcov_dump could be used only after doing all the > testing with the application ,i.e- towards the end to get the > profile/coverage info. Am I right? Yes, and you don't need to call

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-25 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #5 from Gejoe --- Running the program: ./a.out g When g is passed, return value is 8 When is passed, return value is 0 r When r is passed, return value is 8 When is passed, return value is 0 << the program is still running, wait

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-25 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #4 from Gejoe --- (In reply to Martin Liška from comment #3) > > For the second time and then onwards, __gcov_dump() invocation (by giving > > 'g' character during the a.out run) doesn't happen. > > Yes, one can call __gcov_dump onl

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-25 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 Martin Liška changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-25 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 --- Comment #2 from Gejoe --- Created attachment 50866 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50866&action=edit sample-prog.c file that may be useful for gcov usage test The original sample source file.

[Bug gcov-profile/100751] __gcov_dump and __gcov_reset usage

2021-05-24 Thread gejoed at rediffmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 Gejoe changed: What|Removed |Added CC||gejoed at rediffmail dot com --- Comment #1 fro