Code coverage via GCOV

Gedare Bloom gedare at rtems.org
Fri Nov 20 16:21:09 UTC 2020


On Fri, Nov 20, 2020 at 7:47 AM Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
>
>
> On 20/11/2020 15:46, Sebastian Huber wrote:
> > On 10/11/2020 13:58, Sebastian Huber wrote:
> >
> >> Hello,
> >>
> >> I reviewed a bit how the code coverage information is produced by GCC
> >> and what libgcov does. I think if we want to use GCOV in RTEMS to get
> >> code coverage in all system states, then we need some tweaks in GCC:
> >>
> >> https://gcc.gnu.org/pipermail/gcc/2020-November/234164.html
> >
> > The linker set based gcov information registration is already included
> > in GCC:
> >
> > https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html#index-fprofile-info-section
> >
> >
> > There is a discussion about how the gcov information can be
> > transferred from the embedded system to the host:
> >
> > https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html#index-fprofile-info-section
> >
>
> Sorry, this is the URL:
>
> https://gcc.gnu.org/pipermail/gcc-patches/2020-November/559342.html
>

It's an interesting read. Thanks for pushing on them to consider
embedded needs (or at least, our needs). It will be nice if we can get
onboard coverage runs and not just simulated ones.

> --
> embedded brains GmbH
> Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.huber at embedded-brains.de
> Phone: +49-89-18 94 741 - 16
> Fax:   +49-89-18 94 741 - 08
> PGP: Public key available on request.
>
> embedded brains GmbH
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list