[lttng-dev] compiling lttng 2.0.1 statically into kernel tree 3.4.0-rc7 fails

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Fri May 18 11:49:26 EDT 2012


* Paul Barrette (paulbarrette at gmail.com) wrote:
> Hi all,
> I added the lttng-module to my kernel tree with the goal of making it a
> tristate option.  I added a Kconfig and a few Makefile changes (removed the
> rules at end).  I am able to compile lttng-module as a module (M), but
> compiling statically fails at link time with some redefinition errors (log
> below).

You might want to compare with the LTTng in drivers/staging/lttng of the
LTSI kernel. See

http://git.linuxfoundation.org/?p=ltsi-kernel.git;a=summary

Thanks,

Mathieu

> 
> Details:
> target:  powerpc
> kernel config:  mpc85xx_defconfig
> lttng-modules 2.0.1 plus patch
> 
> commit 6bd5e64e29cf1c251632501e45d61be6f16257ba
> Author: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
> Date:   Thu Apr 26 17:40:31 2012 -0400
> 
>     Fix: update signal instrumentation for 3.4 kernel
> 
>     Fix #226
> 
>  Any ideas?
> 
>   LD      drivers/staging/lttng2/probes/built-in.o
>   LD      drivers/staging/lttng2/built-in.o
> drivers/staging/lttng2/probes/built-in.o:(__tracepoints+0x35c): multiple
> definition of `__tracepoint_lttng_statedump_network_interface'
> drivers/staging/lttng2/lttng-statedump.o:(__tracepoints+0x64): first
> defined here
> drivers/staging/lttng2/probes/built-in.o:(__tracepoints+0x320): multiple
> definition of `__tracepoint_lttng_statedump_process_state'
> drivers/staging/lttng2/lttng-statedump.o:(__tracepoints+0x14): first
> defined here
> drivers/staging/lttng2/probes/built-in.o:(__tracepoints+0x2f8): multiple
> definition of `__tracepoint_lttng_statedump_start'
> drivers/staging/lttng2/lttng-statedump.o:(__tracepoints+0x0): first defined
> here
> drivers/staging/lttng2/probes/built-in.o:(__tracepoints+0x334): multiple
> definition of `__tracepoint_lttng_statedump_file_descriptor'
> drivers/staging/lttng2/lttng-statedump.o:(__tracepoints+0x28): first
> defined here
> drivers/staging/lttng2/probes/built-in.o:(__tracepoints+0x370): multiple
> definition of `__tracepoint_lttng_statedump_interrupt'
> drivers/staging/lttng2/lttng-statedump.o:(__tracepoints+0x50): first
> defined here
> drivers/staging/lttng2/probes/built-in.o:(__tracepoints+0x348): multiple
> definition of `__tracepoint_lttng_statedump_vm_map'
> drivers/staging/lttng2/lttng-statedump.o:(__tracepoints+0x3c): first
> defined here
> drivers/staging/lttng2/probes/built-in.o:(__tracepoints+0x30c): multiple
> definition of `__tracepoint_lttng_statedump_end'
> drivers/staging/lttng2/lttng-statedump.o:(__tracepoints+0x78): first
> defined here
> make[3]: *** [drivers/staging/lttng2/built-in.o] Error 1
> make[2]: *** [drivers/staging/lttng2] Error 2
> make[1]: *** [drivers/staging] Error 2
> make: *** [drivers] Error 2
> 
> 
> 
> Thanks
> Pb
> 
> -- 
> --
> Paul Barrette
> Linked In Profile <http://ca.linkedin.com/pub/paul-barrette/11/b42/a96>
> http://sitarplayer.net
> Ő
>  \\=^%
>  (*)---(*)
> ^^~~^~~~^^^~~^

> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list