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.
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
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
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
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
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.
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
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.
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
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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751
Martin Liška changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
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
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,
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
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
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751
Martin Liška changed:
What|Removed |Added
URL||https://gcc.gnu.org/piperma
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751
Gejoe changed:
What|Removed |Added
CC||gejoed at rediffmail dot com
--- Comment #1 fro
24 matches
Mail list logo