<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 14, 2018 at 12:43 PM, Vijay Kumar Banerjee <span dir="ltr"><<a href="mailto:vijaykumar9597@gmail.com" target="_blank">vijaykumar9597@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-">On 14 May 2018 at 21:21, Joel Sherrill <span dir="ltr"><<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Mon, May 14, 2018 at 10:19 AM, Vijay Kumar Banerjee <span dir="ltr"><<a href="mailto:vijaykumar9597@gmail.com" target="_blank">vijaykumar9597@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, <div><br></div><div>The coverage report is showing some data now (txt only). There is still some work needed to be done for it to get merged with the main repo. As it depends on the ongoing work on the covoar.cc and coverage.py, meanwhile I want to get started with the gcov support in covoar as I already have some coverage data in txt format to compare with .</div><div><br></div><div>I would like to know the following points to get started: </div><div> </div><div> 1. What is the current state of the gcov support in covoar. I can see work on GcovData and GcovFunction data in covoar, what's the current status of it ?</div></div></blockquote><div><br></div></span><div>Technically unknown, potentially bit rotted.</div></div></div></div></blockquote></span><div>Seems like it will take some time before it starts making sense .</div></div></div></div></blockquote><div><br></div><div>Maybe. Since you can produce coverage reports now, I am betting it </div><div>will likely work quickly. :)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div> </div><div> 2. Did it use to run at some point? seeing it in action will be very helpful.</div></div></blockquote><div><br></div></span><div>It used to produce .gcov files that could be processed by gcov and produce reports.</div></div></div></div></blockquote></span><div>Then our very first objective is to get the .gcov file output only then can we proceed with the discripancies </div></div></div></div></blockquote><div><br></div><div>Yes.</div><div><br></div><div>Use the same test executables and symbols of interest.</div><div><br></div><div>I suspect you have been looking at a report for the same test exe and the same methods.</div><div>Just check that the report from gcov matches. If it doesn't, then we have a small test case.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>Once you started to compare the reports to the native reports from covoar, you would sometimes see places that covoar thought some code was executed that did not show up in the gcov generated report. When I investigated, I got far enough to know we had executed the code in question.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div> </div><div> 3. What are the listed blockers rn ? Other than the reliability of the report .</div></div></blockquote><div><br></div></span><div>That's it. Get it working and then let's work on automation, use of lcov, etc. Along the way, I am sure we will spot the difference in reporting. Then that will have to be fixed.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div> 4. are there any tickets related to gcov?</div></div></blockquote><div><br></div></span><div>Not from RTEMS' perspective. </div><div><br></div><div>One challenge we had previously is that the .gcov file format was only documented in the header file. That was why I asked for someone from the gcc community to help us once we spot difference. Hopefully they can help us figure out what is wrong with the file covoar is producing. </div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div> </div><div>Please add any suggestions or references that might help me get started properly .</div></div></blockquote></span></div></div></div></blockquote></span></div></div></div></blockquote><div><br></div><div><a href="https://gcc.gnu.org/onlinedocs/gcc/Gcov-Data-Files.html">https://gcc.gnu.org/onlinedocs/gcc/Gcov-Data-Files.html</a> is an overview from a gcc user's perspective.<br></div><div><br></div><div>The details are in the gcc source code. This should be the current version of the gcov file:</div><div><br></div><div><a href="https://github.com/gcc-mirror/gcc/blob/master/gcc/gcov-io.h">https://github.com/gcc-mirror/gcc/blob/master/gcc/gcov-io.h</a><br></div><div><br></div><div>I don't remember a comment in the version in covoar specifying that the format could change</div><div>with GCC versions. Maybe that's the gcno data and not the coverage data.</div><div><br></div><div>Randomly found this tool which looks like another option for more reports/analysis once gcov</div><div>files are available:</div><div><br></div><div><a href="https://gcovr.com/guide.html">https://gcovr.com/guide.html</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Thank you,</div></div></blockquote></span></div></div></div></blockquote></span></div></div></div></blockquote><div><br></div><div>R </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Vijay</div><div><br clear="all"><div><div class="gmail-m_-5554592881249326731m_-564914711204878285m_-194684059942477523gmail_signature"><div dir="ltr"><div dir="ltr"><br></div></div></div></div>
</div></div>
</blockquote></span></div><br></div></div>
</blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>