<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 4 July 2018 at 13:36, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 4/7/18 5:55 pm, Vijay Kumar Banerjee wrote:<br>
> On 4 July 2018 at 13:09, Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a><br>
</span><span class="">> <mailto:<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>>> wrote:<br>
> <br>
>     On 4/7/18 5:38 pm, Chris Johns wrote:<br>
>     > On 4/7/18 4:52 pm, Vijay Kumar Banerjee wrote:<br>
>     >><br>
>     >> I'm starting this thread for discussions on the gcov support <br>
>     >> in covoar.<br>
>     >><br>
>     >> Current status is that the code in it (like in GcovData.cc) remained untouched <br>
>     >> for a long time and it had not been updated after the source tree reorganization<br>
>     >> which is why it runs into segmentation<br>
>     >> fault while trying to find the source files.<br>
>     >><br>
>     >> Joel was suggesting to copy the file gcov-io.h from the gcc<br>
>     >> source after a license discussion here.<br>
>     > <br>
>     > What license the file's license?<br>
> <br>
>     Sorry .. What is the file's license?<br>
> <br>
> GPL version 3 <br>
<br>
</span>This license is not suitable.<br>
<span class=""><br>
>     > We are aiming to have all code under the RTEMS Tools under a BSD or compatible<br>
>     > license. Are there other options that have a more suitable license?<br>
>     > <br>
>     > Also, could you please explain how gcov fits into the coverage testing?<br>
>     > <br>
> <br>
> gcov is a test coverage program by gcc that generates statement-by-statement<br>
> profiling.<br>
> (<a href="https://gcc.gnu.org/onlinedocs/gcc/Gcov-Intro.html" rel="noreferrer" target="_blank">https://gcc.gnu.org/<wbr>onlinedocs/gcc/Gcov-Intro.html</a><wbr>)<br>
<br>
</span>Yes.<br>
<span class=""><br>
> once we're able to generate gcov reports we can run graphical tools like lcov or<br>
> gcovr to generate html and xml reports with detailed coverage data.<br>
> an example of lcov report:<br>
> <a href="http://ltp.sourceforge.net/coverage/lcov/output/example/methods/iterate.c.gcov.html" rel="noreferrer" target="_blank">http://ltp.sourceforge.net/<wbr>coverage/lcov/output/example/<wbr>methods/iterate.c.gcov.html</a><br>
><br>
<br>
</span>Do you want to export gcov files from the other trace formats we handle?<br>
<br>
How does this fit into the RTEMS Tester tool?<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>this is a basic outline of the plan : </div><div><ul><li>gcc generates the .gcno notes file at the compile time<br></li><li>covoar reads these gcno files and the trace files from qemu and produces the gcda files that can be processed by gcov.<br></li><li>gcov processes gcno and gcda files to produce coverage reports.<br></li></ul> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
Chris<br>
</font></span></blockquote></div><br></div></div>