[lttng-dev] lttng-modules fails to build on linux 3.18.9
Charlie Brown
stieizc.33 at gmail.com
Thu Apr 9 05:33:49 EDT 2015
Hi all,
lttng-modules 2.6.0 fails to build on linux 3.18.9.
It seems that the marco that defines trace_##name in
include/linux/tracepoint.h has been changed to inline type.
http://permalink.gmane.org/gmane.comp.sysutils.lttng.devel/6332 Confirms
this bug.
Thank you for making lttng!
This is my build log
----------------------------------------------------------------------------------------------------------------------------------------------------------------
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,
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,
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:
/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’
void trace_##_name(_proto);
^
/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’
LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto),
PARAMS(args))
^
/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’
LTTNG_TRACEPOINT_EVENT_MAP(name, name, \
^
/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’
LTTNG_TRACEPOINT_EVENT(kvm_age_page,
^
In file included from ./arch/x86/include/asm/kvm_host.h:17:0,
from include/linux/kvm_host.h:34,
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:
include/linux/tracepoint.h:169:21: note: previous definition of
‘trace_kvm_age_page’ was here
static inline void trace_##name(proto) \
^
include/linux/tracepoint.h:325:3: note: in expansion of macro
‘__DECLARE_TRACE’
__DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
^
include/linux/tracepoint.h:459:2: note: in expansion of macro
‘DECLARE_TRACE’
DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
^
include/trace/events/kvm.h:227:1: note: in expansion of macro ‘TRACE_EVENT’
TRACE_EVENT(kvm_age_page,
^
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
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Sincerely,
王文鑫
Charlie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150409/70564710/attachment.html>
More information about the lttng-dev
mailing list