SIS with coverage support
Joel Sherrill
joel at rtems.org
Thu Jan 24 22:27:24 UTC 2019
On Thu, Jan 24, 2019 at 3:04 AM Jiri Gaisler <jiri at gaisler.se> wrote:
>
> On 1/24/19 9:33 AM, Jiri Gaisler wrote:
>
>
> On 1/24/19 12:45 AM, Joel Sherrill wrote:
>
>
>
> On Wed, Jan 23, 2019 at 4:45 PM Chris Johns <chrisj at rtems.org> wrote:
>
>> On 24/1/19 9:12 am, Jiri Gaisler wrote:
>> > After some trial and error, I got covoar to run with:
>>
>> Great.
>>
>> > However, the coverage is always 0% in the summary report:
>>
>> Does adding -v to the command line provide any more detail? Repeating -v
>> increases the level but things can become rather verbose and if you trip
>> full
>> DWARF tracing there is a lot of output.
>>
>
> I would be suspicious of the code that is invoked around
> CoverageReaderTSIM.cc:83 as a starting point. For some method you
> know you should be analyzed, there should be aCoverageMap. Since you
> are looking at only one executable, you could hard-code a test with
> address range of a single method under test to see what happens.
>
>
> Well, the problem is that covoar in rtems-tools is hard-coded to use the
> QEMU format, and the -f switch to change format is not used. I have
> attached a patch to fix that. After that, covoar works fine with the
> coverage data from sis:
>
> cat coverage/summary.txt
> Bytes Analyzed : 20034
> Bytes Not Executed : 11734
> Percentage Executed : 41.43
> Percentage Not Executed : 58.57
> Uncovered ranges found : 242
> Total branches found : 443
> Uncovered branches found : 167
> 68 branches always taken
> 99 branches never taken
>
> If you approve to the patch, then I will check it in (now that I know how
> ... :-))
>
> Here is a better patch that maintains the old behavior of QEMU as default,
> while honoring the -f switch if provided.
>
Please push this. Although I would be perfectly happy returning to using
sparc by default for coverage.
We developed covoar using tsim output. The qemu input requires the AdaCore
Couverture variant of
qemu to get traces. That was the only option to do coverage with open, free
tools. With sis including
coverage information, it is likely easier to debug covoar issues using it.
> Jiri.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190124/250e7f7a/attachment-0002.html>
More information about the devel
mailing list