[yocto] gcov on target

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Jan 11 08:19:08 PST 2013


Dear Robert Berger,

On Fri, 11 Jan 2013 12:24:47 +0200, Robert Berger wrote:

> I use Yocto Project, 1.3 "danny" for a beagle-xm and would like to show
> kernel code coverage with a core-image-sato-sdk.
> This image is pretty complete. Unfortunately there is no gcov available
> on the target.
> 
> It looks like it's only built for the host.
> 
> Did someone manage to build/run gcov for an armv7a?
> ... or let's put it otherwise: Why doesn't it exist on the target?

I supposed the idea is to generate to coverage data on the target, and
then analyze them with gcov on the build machine. See
http://gcc.gnu.org/onlinedocs/gcc/Cross_002dprofiling.html#Cross_002dprofiling.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the yocto mailing list