[lttng-dev] Need help on LTTNG

Kumari, Shilpa (HPSD/VDU/Avatar) shilpakumari.pv at hp.com
Wed Apr 16 11:11:10 EDT 2014


Thanks a lot Mathieu.

I tried KERNELDIR, but still seeing the same error,

[root at million lttng-modules-2.4.0]# KERNELDIR=/usr/src/kernels/$(uname -r) make
make -C /usr/src/kernels/2.6.32-431.5.1.el6.hpsp.centos.LTTNG.18852.x86_64 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

Do you suggest me to re install the machine with centos and try fresh? Kindly suggest any quick solution.
I am stuck in this ☹

Thanks,
Shilpa.

From: Mathieu Desnoyers [mailto:mathieu.desnoyers at efficios.com]
Sent: Wednesday, April 16, 2014 6:31 PM
To: Kumari, Shilpa (HPSD/VDU/Avatar)
Cc: lttng-dev at lists.lttng.org
Subject: Re: [lttng-dev] Need help on LTTNG

________________________________
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/028622a8/attachment-0001.html>


More information about the lttng-dev mailing list