SIS with coverage support

Jiri Gaisler jiri at gaisler.se
Thu Jan 24 09:04:35 UTC 2019


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 <mailto: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.

Jiri.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190124/6fe81890/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: covoar2.patch
Type: text/x-patch
Size: 938 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190124/6fe81890/attachment-0002.bin>


More information about the devel mailing list