[lttng-dev] Need help on LTTNG
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Wed Apr 16 09:00:34 EDT 2014
----- Original Message -----
> From: "Shilpa Kumari (HPSD/VDU/Avatar)" <shilpakumari.pv at hp.com>
> To: lttng-dev at lists.lttng.org
> Cc: "Shilpa Kumari (HPSD/VDU/Avatar)" <shilpakumari.pv at hp.com>
> Sent: Tuesday, April 15, 2014 1:27:47 AM
> Subject: [lttng-dev] Need help on LTTNG
> Hello,
> I am trying to use LTTNG on centos (2.6.32). I have applied the given patch
> and rebuilt a kernel.
> Still I am unable to build the lltng-modules.
> [root at million lttng-modules-2.4.0]# uname -r
> 2.6.32-431.5.1.el6.hpsp.centos.LTTNG.18852.x86_64
> Below is the compiler error I am getting,
> [root at million lttng-modules-2.4.0]# make
> make -C /lib/modules/2.6.32-431.5.1.el6.hpsp.centos.LTTNG.18852.x86_64/build
> M=/root/LTTNG/lttng-modules-2.4.0 modules
> make[1]: Entering directory
> `/usr/src/kernels/2.6.32-431.5.1.el6.hpsp.centos.LTTNG.18852.x86_64'
> CC [M] /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-client-discard.o
> CC [M] /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-client-overwrite.o
> CC [M] /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-metadata-client.o
> CC [M]
> /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-client-mmap-discard.o
> CC [M]
> /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-client-mmap-overwrite.o
> CC [M]
> /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-metadata-mmap-client.o
> CC [M] /root/LTTNG/lttng-modules-2.4.0/lttng-statedump-impl.o
> In file included from
> /root/LTTNG/lttng-modules-2.4.0/lttng-statedump-impl.c:55:
> /root/LTTNG/lttng-modules-2.4.0/wrapper/tracepoint.h: In function
> âwrapper_lttng_fixup_sigâ:
> /root/LTTNG/lttng-modules-2.4.0/wrapper/tracepoint.h:76: error: âstruct
> moduleâ has no member named âsig_okâ
> make[2]: *** [/root/LTTNG/lttng-modules-2.4.0/lttng-statedump-impl.o] Error 1
> make[1]: *** [_module_/root/LTTNG/lttng-modules-2.4.0] Error 2
> make[1]: Leaving directory
> `/usr/src/kernels/2.6.32-431.5.1.el6.hpsp.centos.LTTNG.18852.x86_64'
> make: *** [default] Error 2
That's weird. The sig_ok field of struct module should only be used when
CONFIG_MODULE_SIG is defined. This looks like a kernel config mismatch.
You might want to ensure you use KERNELDIR=path_to_kernel_source make
to build lttng-modules.
> [root at million lttng-modules-2.4.0]#
> Patches provided In lttng-modules/linux-patches/
> backport-kallsym-sym-2.6.32.patch ß got easily applied with patch command
> backport-splice-sym-2.6.32-34.patch ß got easily applied with patch command
> backport-tracepoint-data-2.6.32-33.patch ß Conflicts were found, and I
> manually edited tracepoint.h file.
> Kernel was built by disabling “CONFIG_MODULE_SIG”.
Hrm, is this a kind of Frankeinstein kernel ? Arguably, the RHEL6-based kernels has a set
of features taken from kernels between 2.6.32 and 2.6.35, but even at 2.6.35, the kernel
does not appear to implement CONFIG_MODULE_SIG. This makes me wonder why
CONFIG_MODULE_SIG appears in the .config file at all.
Thanks,
Mathieu
> Could you please kindly guide me on this issue. Appreciate your help very
> much.
> Please do let me know, if I need to provide any more info on this.
> Thanks and regards,
> Shilpa Kumari.P.V
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140416/8bece397/attachment.html>
More information about the lttng-dev
mailing list