<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Shilpa Kumari (HPSD/VDU/Avatar)" <shilpakumari.pv@hp.com><br><b>To: </b>lttng-dev@lists.lttng.org<br><b>Cc: </b>"Shilpa Kumari (HPSD/VDU/Avatar)" <shilpakumari.pv@hp.com><br><b>Sent: </b>Tuesday, April 15, 2014 1:27:47 AM<br><b>Subject: </b>[lttng-dev] Need help on LTTNG<br><div><br></div><style><!--
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><div class="WordSection1"><p class="MsoNormal">Hello,</p><p class="MsoNormal">I am trying to use LTTNG on centos (2.6.32). I have applied the given patch and rebuilt a kernel.</p><p class="MsoNormal">Still I am unable to build the lltng-modules.</p><p class="MsoNormal">[root@million lttng-modules-2.4.0]# uname -r</p><p class="MsoNormal"><b>2.6.32-431.5.1.el6.hpsp.centos.LTTNG.18852.x86_64</b></p><p class="MsoNormal">Below is the compiler error I am getting,</p><p class="MsoNormal">[root@million lttng-modules-2.4.0]# make</p><p class="MsoNormal">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</p><p class="MsoNormal">make[1]: Entering directory `/usr/src/kernels/2.6.32-431.5.1.el6.hpsp.centos.LTTNG.18852.x86_64'</p><p class="MsoNormal"> CC [M] /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-client-discard.o</p><p class="MsoNormal"> CC [M] /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-client-overwrite.o</p><p class="MsoNormal"> CC [M] /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-metadata-client.o</p><p class="MsoNormal"> CC [M] /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-client-mmap-discard.o</p><p class="MsoNormal"> CC [M] /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-client-mmap-overwrite.o</p><p class="MsoNormal"> CC [M] /root/LTTNG/lttng-modules-2.4.0/lttng-ring-buffer-metadata-mmap-client.o</p><p class="MsoNormal"> CC [M] /root/LTTNG/lttng-modules-2.4.0/lttng-statedump-impl.o</p><p class="MsoNormal">In file included from /root/LTTNG/lttng-modules-2.4.0/lttng-statedump-impl.c:55:</p><p class="MsoNormal">/root/LTTNG/lttng-modules-2.4.0/wrapper/tracepoint.h: In function âwrapper_lttng_fixup_sigâ:</p><p class="MsoNormal">/root/LTTNG/lttng-modules-2.4.0/wrapper/tracepoint.h:76: error:
<b>âstruct moduleâ has no member named âsig_okâ</b></p><p class="MsoNormal">make[2]: *** [/root/LTTNG/lttng-modules-2.4.0/lttng-statedump-impl.o] Error 1</p><p class="MsoNormal">make[1]: *** [_module_/root/LTTNG/lttng-modules-2.4.0] Error 2</p><p class="MsoNormal">make[1]: Leaving directory `/usr/src/kernels/2.6.32-431.5.1.el6.hpsp.centos.LTTNG.18852.x86_64'</p><p class="MsoNormal">make: *** [default] Error 2</p></div></blockquote><div><br></div><div>That's weird. The sig_ok field of struct module should only be used when<br></div><div>CONFIG_MODULE_SIG is defined. This looks like a kernel config mismatch.<br></div><div>You might want to ensure you use KERNELDIR=path_to_kernel_source make<br></div><div>to build lttng-modules.<br></div><div><br></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div class="WordSection1"><p class="MsoNormal">[root@million lttng-modules-2.4.0]#</p><p class="MsoNormal">Patches provided In lttng-modules/linux-patches/</p><p class="MsoNormal">backport-kallsym-sym-2.6.32.patch <span style="font-family:Wingdings">ß</span> got easily applied with patch command</p><p class="MsoNormal">backport-splice-sym-2.6.32-34.patch <span style="font-family:Wingdings">ß</span> got easily applied with patch command</p><p class="MsoNormal">backport-tracepoint-data-2.6.32-33.patch <span style="font-family:Wingdings">ß</span> Conflicts were found, and I manually edited tracepoint.h file.</p><p class="MsoNormal">Kernel was built by disabling “CONFIG_MODULE_SIG”. </p></div></blockquote><div>Hrm, is this a kind of Frankeinstein kernel ? Arguably, the RHEL6-based kernels has a set<br></div><div>of features taken from kernels between 2.6.32 and 2.6.35, but even at 2.6.35, the kernel<br></div><div>does not appear to implement CONFIG_MODULE_SIG. This makes me wonder why<br></div><div>CONFIG_MODULE_SIG appears in the .config file at all.<br></div><div><br></div><div>Thanks,<br></div><div><br></div><div>Mathieu<br></div><div><br></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div class="WordSection1"><p class="MsoNormal">Could you please kindly guide me on this issue. Appreciate your help very much.</p><p class="MsoNormal">Please do let me know, if I need to provide any more info on this.
</p><p class="MsoNormal">Thanks and regards,</p><p class="MsoNormal">Shilpa Kumari.P.V</p></div><br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote><div><br><br></div><div><br></div><div>-- <br></div><div><span name="x"></span>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com<span name="x"></span><br></div></div></body></html>