Code coverage via GCOV

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Nov 20 14:46:59 UTC 2020


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

-- 
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/



More information about the devel mailing list