<div dir="ltr"><div><div><div>Hi all,<br></div>lttng-modules 2.6.0 fails to build on linux 3.18.9.<br></div>It seems that the marco that defines trace_##name in include/linux/tracepoint.h has been changed to inline type.<br><a href="http://permalink.gmane.org/gmane.comp.sysutils.lttng.devel/6332">http://permalink.gmane.org/gmane.comp.sysutils.lttng.devel/6332</a> Confirms this bug.<br></div><br>Thank you for making lttng!<br><div><div><br>This is my build log<br>----------------------------------------------------------------------------------------------------------------------------------------------------------------<br>In
 file included from 
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:136:0,<br>                
 from 
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/kvm.h:381,<br>                
 from 
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/lttng-probe-kvm.c:42:<br>/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:180:6:
 error: conflicting types for ‘trace_kvm_age_page’<br> void trace_##_name(_proto);<br>      ^<br>/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:47:2:
 note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP’<br>  LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))<br>  ^<br>/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:107:2:
 note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_MAP’<br>  LTTNG_TRACEPOINT_EVENT_MAP(name, name,    \<br>  ^<br>/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/kvm.h:235:1:
 note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT’<br> LTTNG_TRACEPOINT_EVENT(kvm_age_page,<br> ^<br>In file included from ./arch/x86/include/asm/kvm_host.h:17:0,<br>                 from include/linux/kvm_host.h:34,<br>                
 from 
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/lttng-probe-kvm.c:24:<br>include/linux/tracepoint.h:169:21: note: previous definition of ‘trace_kvm_age_page’ was here<br>  static inline void trace_##name(proto)    \<br>                     ^<br>include/linux/tracepoint.h:325:3: note: in expansion of macro ‘__DECLARE_TRACE’<br>   __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \<br>   ^<br>include/linux/tracepoint.h:459:2: note: in expansion of macro ‘DECLARE_TRACE’<br>  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))<br>  ^<br>include/trace/events/kvm.h:227:1: note: in expansion of macro ‘TRACE_EVENT’<br> TRACE_EVENT(kvm_age_page,<br> ^<br>  CC [M]  /var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/lib/ringbuffer/ring_buffer_mmap.o<br>----------------------------------------------------------------------------------------------------------------------------------------------------------------<br><br clear="all"><div><div><div><div class="gmail_signature"><div dir="ltr">Sincerely,<br>王文鑫<br><div>Charlie</div></div></div></div>
</div></div></div></div></div>