* gcov on target
@ 2013-01-11 10:24 Robert Berger
2013-01-11 16:19 ` Thomas Petazzoni
0 siblings, 1 reply; 5+ messages in thread
From: Robert Berger @ 2013-01-11 10:24 UTC (permalink / raw)
To: yocto
Hi,
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?
Regards,
Robert...The most likely way for the world to be destroyed, most experts
agree, is by accident. That's where we come in; we're computer
professionals. We cause accidents.
My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcov on target
2013-01-11 10:24 gcov on target Robert Berger
@ 2013-01-11 16:19 ` Thomas Petazzoni
2013-01-11 16:37 ` Robert Berger
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2013-01-11 16:19 UTC (permalink / raw)
To: Robert Berger; +Cc: yocto
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcov on target
2013-01-11 16:19 ` Thomas Petazzoni
@ 2013-01-11 16:37 ` Robert Berger
2013-01-15 23:26 ` Robert Berger
2013-01-15 23:26 ` Robert Berger
2 siblings, 0 replies; 5+ messages in thread
From: Robert Berger @ 2013-01-11 16:37 UTC (permalink / raw)
To: yocto; +Cc: Robert Berger, public-yocto-EtnWKYl6rD/WsZ/bQMPhNw
Hi Thomas,
On 01/11/2013 06:19 PM, Thomas Petazzoni wrote:
>> 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.
Yes this should work. Thanks!
It's also documented in the kernel source tree [1].
>
> Best regards,
>
> Thomas
>
[1]:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=blob;f=Documentation/gcov.txt;h=e7ca6478cd93d4e6422d1ae92455b347dbdf7ccb;hb=HEAD
Regards,
Robert
..."About Basic: mentally mutilated potential programmers beyond hope of
regeneration." -- Dijkstra
My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcov on target
2013-01-11 16:19 ` Thomas Petazzoni
2013-01-11 16:37 ` Robert Berger
@ 2013-01-15 23:26 ` Robert Berger
2013-01-15 23:26 ` Robert Berger
2 siblings, 0 replies; 5+ messages in thread
From: Robert Berger @ 2013-01-15 23:26 UTC (permalink / raw)
To: yocto
Hi,
After compiling with:
GCOV_PROFILE := y
I get:
insmod debugfs.ko
Error: could not insert module debugfs.ko: Invalid module format
unknown relocation: 38
Is this a known issue, or am I doing something stupid?
Regards,
Robert
..."In the beginning, there was software. And it wasn't good."
My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcov on target
2013-01-11 16:19 ` Thomas Petazzoni
2013-01-11 16:37 ` Robert Berger
2013-01-15 23:26 ` Robert Berger
@ 2013-01-15 23:26 ` Robert Berger
2 siblings, 0 replies; 5+ messages in thread
From: Robert Berger @ 2013-01-15 23:26 UTC (permalink / raw)
To: yocto
Hi,
After compiling with:
GCOV_PROFILE := y
I get:
insmod debugfs.ko
Error: could not insert module debugfs.ko: Invalid module format
unknown relocation: 38
Is this a known issue, or am I doing something stupid?
Regards,
Robert
..."In the beginning, there was software. And it wasn't good."
My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-01-15 23:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11 10:24 gcov on target Robert Berger
2013-01-11 16:19 ` Thomas Petazzoni
2013-01-11 16:37 ` Robert Berger
2013-01-15 23:26 ` Robert Berger
2013-01-15 23:26 ` Robert Berger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.