<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">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">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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 class="HOEnZb"><font color="#888888"><div>Nan Xiao</div></font></span></div></div></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>