<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 27, 2015 at 9:43 PM, Nan Xiao <span dir="ltr"><<a href="mailto:xiaonan830818@gmail.com" target="_blank">xiaonan830818@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br clear="all"><div><div><div dir="ltr">Best Regards<span class=""><font color="#888888"><div>Nan Xiao</div></font></span></div></div></div><div><div class="h5">
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Nan Xiao</b> <span dir="ltr"><<a href="mailto:xiaonan830818@gmail.com" target="_blank">xiaonan830818@gmail.com</a>></span><br>Date: Thu, May 28, 2015 at 9:42 AM<br>Subject: Re: [lttng-dev] Install kmod-lttng-modules error on CentOS 7<br>To: Jérémie Galarneau <<a href="mailto:jeremie.galarneau@efficios.com" target="_blank">jeremie.galarneau@efficios.com</a>><br><br><br><div dir="ltr">After trying with SRPM, it reports the same error:   <div><br></div><div><div>In file included from /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:139:0,</div><div>                 from /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/kvm.h:381,</div><div>                 from /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.c:42:</div><div>/root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:151:6: error: conflicting types for 'trace_kvm_async_pf_completed'</div><div> void trace_##_name(_proto);</div><div>      ^</div><div>/root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:47:2: note: in expansion of macro 'DEFINE_EVENT_MAP'</div><span><div>  DEFINE_EVENT_MAP(map, name, map, PARAMS(proto), PARAMS(args))</div><div>  ^</div></span><div>/root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:89:2: note: in expansion of macro 'TRACE_EVENT_MAP'</div><div>  TRACE_EVENT_MAP(name, name,    \</div><div>  ^</div><div>/root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/kvm.h:351:1: note: in expansion of macro 'TRACE_EVENT'</div><span><div> TRACE_EVENT(</div><div> ^</div><div>In file included from include/linux/module.h:18:0,</div></span><div>                 from /root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.c:23:</div><span><div>include/linux/tracepoint.h:162:21: note: previous definition of 'trace_kvm_async_pf_completed' was here</div><div>  static inline void trace_##name(proto)    \</div><div>                     ^</div><div>include/linux/tracepoint.h:259:3: note: in expansion of macro '__DECLARE_TRACE'</div><div>   __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \</div><div>   ^</div><div>include/linux/tracepoint.h:391:2: note: in expansion of macro 'DECLARE_TRACE'</div><div>  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))</div><div>  ^</div><div>include/trace/events/kvm.h:317:1: note: in expansion of macro 'TRACE_EVENT'</div><div> TRACE_EVENT(</div><div> ^</div></span><div>make[2]: *** [/root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.o] Error 1</div><div>make[1]: *** [/root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes] Error 2</div><div>make: *** [_module_/root/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default] Error 2</div><div>make: Leaving directory `/usr/src/kernels/3.10.0-229.4.2.el7.x86_64'</div><div>error: Bad exit status from /var/tmp/rpm-tmp.BYJgqS (%build)</div><div><br></div><div><br></div><div>RPM build errors:</div><div>    Bad exit status from /var/tmp/rpm-tmp.BYJgqS (%build)</div></div><div><br></div><div><br></div><div>Could you help to fix it and provide patch for CentOS? Thanks!</div></div></div></div></div></div></blockquote><div><br></div><div>Hi Nan,</div><div><br></div><div>We have updated the packages on <a href="http://packages.efficios.com">packages.efficios.com</a>. The issue was caused by patches backported by Red Hat to their 3.10 kernel as part of the release of RHEL 7.1.</div><div><br></div><div>Can you check that the latest kmod-lttng-modules package on the repository works?</div><div><br></div><div>The updated source RPM is also available at: <a href="http://packages.efficios.com/rhel/7/SRPMS/latest/lttng-modules/lttng-modules-2.5.3-1.el7.src.rpm">http://packages.efficios.com/rhel/7/SRPMS/latest/lttng-modules/lttng-modules-2.5.3-1.el7.src.rpm</a></div><div><br></div><div>The following patches, merged as part of lttng-modules' stable-2.5, stable-2.6 and master branches add the necessary kernel version checks:</div><div><br></div><div><div>commit 51b961653d69b56528ae8c7e4cd39d140d75f610</div><div>Author: Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com">mathieu.desnoyers@efficios.com</a>></div><div>Date:   Wed May 27 12:56:05 2015 -0400</div><div><br></div><div>    Fix: RHEL 7.1 block instrumentation</div><div>    </div><div>    Signed-off-by: Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com">mathieu.desnoyers@efficios.com</a>></div><div><br></div><div>commit f30ae671364af1a69a5c5ad562e10a38c1bbaf2e</div><div>Author: Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com">mathieu.desnoyers@efficios.com</a>></div><div>Date:   Wed May 27 12:19:01 2015 -0400</div><div><br></div><div>    Fix: add RHEL version macros</div><div>    </div><div>    RHEL 7.1 has backported upstream patches that change the kvm.h</div><div>    tracepoint prototype. Add version check specific to RHEL to handle this</div><div>    case.</div><div>    </div><div>    RHEL 7.x has the required fixes backported that allow removing the 3.10</div><div>    blacklist check for them, so take this into account.</div><div>    </div><div>    Signed-off-by: Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com">mathieu.desnoyers@efficios.com</a>></div></div><div><br></div><div>Regards,</div><div>Jérémie</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><div class="gmail_quote"><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">Best Regards<span><font color="#888888"><div>Nan Xiao</div></font></span></div></div></div><div><div>
<br><div class="gmail_quote">On Wed, May 27, 2015 at 11:09 PM, Jérémie Galarneau <span dir="ltr"><<a href="mailto:jeremie.galarneau@efficios.com" target="_blank">jeremie.galarneau@efficios.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">CentOS might be using a different kernel (not binary compatible). Have you tried installing from the source RPM [1]?<div><br></div><div>$ wget <a href="http://packages.efficios.com/rhel/7/SRPMS/latest/lttng-modules/lttng-modules-2.5.0-1.el7.src.rpm" target="_blank">http://packages.efficios.com/rhel/7/SRPMS/latest/lttng-modules/lttng-modules-2.5.0-1.el7.src.rpm</a></div><div>$ rpm -i lttng-modules-2.5.0-1.el7.src.rpm</div><div>$ cd ~/rpmbuild/SPECS</div><div>$ rpmbuild -bb lttng-modules.spec</div><div><br></div><div>Trying this here on a RHEL7 machine seems to fail since the latest kernel update (3.10.0-229.4.2.el7.x86_64) with:</div><div><br></div><div><div>In file included from /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:139:0,</div><div>                 from /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/kvm.h:381,</div><div>                 from /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.c:42:</div><div>/home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:151:6: error: conflicting types for 'trace_kvm_async_pf_completed'</div><div> void trace_##_name(_proto);</div><div>      ^</div><div>/home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:47:2: note: in expansion of macro 'DEFINE_EVENT_MAP'</div><div>  DEFINE_EVENT_MAP(map, name, map, PARAMS(proto), PARAMS(args))</div><div>  ^</div><div>/home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:89:2: note: in expansion of macro 'TRACE_EVENT_MAP'</div><div>  TRACE_EVENT_MAP(name, name,    \</div><div>  ^</div><div>/home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/kvm.h:351:1: note: in expansion of macro 'TRACE_EVENT'</div><div> TRACE_EVENT(</div><div> ^</div><div>In file included from include/linux/module.h:18:0,</div><div>                 from /home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.c:23:</div><div>include/linux/tracepoint.h:162:21: note: previous definition of 'trace_kvm_async_pf_completed' was here</div><div>  static inline void trace_##name(proto)    \</div><div>                     ^</div><div>include/linux/tracepoint.h:259:3: note: in expansion of macro '__DECLARE_TRACE'</div><div>   __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \</div><div>   ^</div><div>include/linux/tracepoint.h:391:2: note: in expansion of macro 'DECLARE_TRACE'</div><div>  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))</div><div>  ^</div><div>include/trace/events/kvm.h:317:1: note: in expansion of macro 'TRACE_EVENT'</div><div> TRACE_EVENT(</div><div> ^</div><div>make[2]: *** [/home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes/lttng-probe-kvm.o] Error 1</div><div>make[1]: *** [/home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default/probes] Error 2</div><div>make: *** [_module_/home/build/rpmbuild/BUILD/lttng-modules-2.5.0/obj/default] Error 2</div><div>make: Leaving directory `/usr/src/kernels/3.10.0-229.4.2.el7.x86_64'</div><div>error: Bad exit status from /var/tmp/rpm-tmp.75xMIN (%build)</div></div><div><br></div><div>I guess this is caused by a patch backported to Red Hat's 3.10 kernel. I'll investigate and see what can be done.</div><div><br></div><div>Regards,</div><div>Jérémie</div><div><br></div><div>[1] <a href="http://packages.efficios.com/rhel/7/SRPMS/latest/lttng-modules/lttng-modules-2.5.0-1.el7.src.rpm" target="_blank">http://packages.efficios.com/rhel/7/SRPMS/latest/lttng-modules/lttng-modules-2.5.0-1.el7.src.rpm</a></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, May 27, 2015 at 5:40 AM, Nan Xiao <span dir="ltr"><<a href="mailto:xiaonan830818@gmail.com" target="_blank">xiaonan830818@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hi all,<div><br></div><div>I am following this page (<a href="http://packages.efficios.com/" target="_blank">http://packages.efficios.com/</a>) , and try to install lttng on CentOS 7. All the modules are installed OK, except kmod-lttng-modules, and the error info likes this:  </div><div><br></div><div><div>[root@mawent3 ~]# yum install kmod-lttng-modules</div><div>Loaded plugins: fastestmirror</div><div>Loading mirror speeds from cached hostfile</div><div> * base: <a href="http://centos.mirrors.tds.net" target="_blank">centos.mirrors.tds.net</a></div><div> * extras: <a href="http://bay.uchicago.edu" target="_blank">bay.uchicago.edu</a></div><div> * updates: <a href="http://dallas.tx.mirror.xygenhosting.com" target="_blank">dallas.tx.mirror.xygenhosting.com</a></div><div>Resolving Dependencies</div><div>--> Running transaction check</div><div>---> Package kmod-lttng-modules.x86_64 0:2.5.0-1.el7 will be installed</div><div>--> Processing Dependency: kernel(__alloc_pages_nodemask) = 0xfb29f2e9 for package: kmod-lttng-modules-2.5.0-1.el7.x86_64</div><div>--> Processing Dependency: kernel(node_data) = 0xc0ebbdec for package: kmod-lttng-modules-2.5.0-1.el7.x86_64</div><div>--> Finished Dependency Resolution</div><div>Error: Package: kmod-lttng-modules-2.5.0-1.el7.x86_64 (EfficiOS-RHEL7-x86-64)</div><div>           Requires: kernel(node_data) = 0xc0ebbdec</div><div>           Installed: kernel-3.10.0-229.el7.x86_64 (@anaconda)</div><div>               kernel(node_data) = 0x3142b10b</div><div>           Installed: kernel-3.10.0-229.4.2.el7.x86_64 (@updates)</div><div>               kernel(node_data) = 0x3142b10b</div><div>           Available: kernel-3.10.0-229.1.2.el7.x86_64 (updates)</div><div>               kernel(node_data) = 0x3142b10b</div><div>           Available: kernel-debug-3.10.0-229.el7.x86_64 (base)</div><div>               kernel(node_data) = 0x7881b78f</div><div>           Available: kernel-debug-3.10.0-229.1.2.el7.x86_64 (updates)</div><div>               kernel(node_data) = 0x7881b78f</div><div>           Available: kernel-debug-3.10.0-229.4.2.el7.x86_64 (updates)</div><div>               kernel(node_data) = 0x7881b78f</div><div>Error: Package: kmod-lttng-modules-2.5.0-1.el7.x86_64 (EfficiOS-RHEL7-x86-64)</div><div>           Requires: kernel(__alloc_pages_nodemask) = 0xfb29f2e9</div><div>           Installed: kernel-3.10.0-229.el7.x86_64 (@anaconda)</div><div>               kernel(__alloc_pages_nodemask) = 0x8616cca3</div><div>           Installed: kernel-3.10.0-229.4.2.el7.x86_64 (@updates)</div><div>               kernel(__alloc_pages_nodemask) = 0x8616cca3</div><div>           Available: kernel-3.10.0-229.1.2.el7.x86_64 (updates)</div><div>               kernel(__alloc_pages_nodemask) = 0x8616cca3</div><div>           Available: kernel-debug-3.10.0-229.el7.x86_64 (base)</div><div>               kernel(__alloc_pages_nodemask) = 0xcc655c2a</div><div>           Available: kernel-debug-3.10.0-229.1.2.el7.x86_64 (updates)</div><div>               kernel(__alloc_pages_nodemask) = 0xcc655c2a</div><div>           Available: kernel-debug-3.10.0-229.4.2.el7.x86_64 (updates)</div><div>               kernel(__alloc_pages_nodemask) = 0xcc655c2a</div><div> You could try using --skip-broken to work around the problem</div><div> You could try running: rpm -Va --nofiles --nodigest</div><div><br></div><div><br></div><div>Could someone give help on this issue? Thanks very much in advance!</div><div><br></div><div><div><div dir="ltr">Best Regards<span><font color="#888888"><div>Nan Xiao</div></font></span></div></div></div>
</div></div>
<br></div></div>_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br>
<a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Jérémie Galarneau<br>EfficiOS Inc.<br><a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a></div>
</font></span></div>
</blockquote></div><br></div></div></div>
</div><br></div></div></div>
<br>_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
<a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Jérémie Galarneau<br>EfficiOS Inc.<br><a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a></div>
</div></div>