All of lore.kernel.org
 help / color / mirror / Atom feed
* gcov on beagle-xm with kernel module
@ 2013-02-07 17:57 Robert Berger
  2013-02-08 15:31 ` Robert Berger
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Berger @ 2013-02-07 17:57 UTC (permalink / raw)
  To: yocto

Hi,

I still try to use gcov on the beagle-xm on a kernel module and I'm not
sure this is the right mailing list to ask.

I just build it with the following modification to the makefile:

GCOV_PROFILE_debugfs.o := y

and it builds;)

... but as soon as I try and insmod I get the following:

insmod debugfs.ko
Error: could not insert module debugfs.ko: Invalid module format

and dmesg says:
[ 1628.759552] debugfs: unknown relocation: 38

Did anyone see something like this before here?

Apparently I'm not the only one having this kind of problem:

http://old.nabble.com/Problem-with-applying-Gcov-tool-to-kernel-module-to28299744.html

Does this look like a compiler bug?

Regards,

Robert..."Never express yourself more clearly than you think." - Niels Bohr

My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcov on beagle-xm with kernel module
  2013-02-07 17:57 gcov on beagle-xm with kernel module Robert Berger
@ 2013-02-08 15:31 ` Robert Berger
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Berger @ 2013-02-08 15:31 UTC (permalink / raw)
  To: yocto

Hi,

Looks like it's an issue with the arm eabi compiler producing code,
which the kernel gcov framework can't deal with.

I guess there are 2 options:

1) toolchain not eabi (not feasible)
2) patch gcov framework in kernel

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] 2+ messages in thread

end of thread, other threads:[~2013-02-08 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-07 17:57 gcov on beagle-xm with kernel module Robert Berger
2013-02-08 15:31 ` 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.