SIS with coverage support

Jiri Gaisler jiri at
Thu Jan 24 08:33:15 UTC 2019

On 1/24/19 12:45 AM, Joel Sherrill wrote:
> On Wed, Jan 23, 2019 at 4:45 PM Chris Johns <chrisj at <mailto:chrisj at>> 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
> 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 ... :-))

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: covoar.patch
Type: text/x-patch
Size: 493 bytes
Desc: not available
URL: <>

More information about the devel mailing list