[lttng-dev] lttng-modules no longer build against linux 3.14.x longterm kernels

Antoine Busque abusque at efficios.com
Sat Mar 21 15:53:37 EDT 2015


Hi,

Thanks for reporting. A commit that changed the instrumentation of
mm_page_alloc_extfrag in 3.19.2 was backported to 3.14.36. I submitted
a patch fixing this to the list, which should resolve your issue once
merged.

Regards,

Antoine Busque.

On Sat, Mar 21, 2015 at 8:43 AM, Bjørn Forsman <bjorn.forsman at gmail.com>
wrote:

> Hi list,
>
> (I'm not subscribed, please CC me.)
>
> The breakage started with linux 3.14.36. Here is the build error, with
> lttng-modules from master branch (stable-2.6 branch is also affected):
>
> ...
>   LD [M]
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/lib/lttng-lib-ring-buffer.o
>
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/Makefile:214:
> CONFIG_KALLSYMS_ALL is disabled,
> therefore probe "writeback" is disabled. Rebuild your kernel with this
> configuration option enabled in order to trace this subsystem.
>  CC [M]
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/lttng-types.o
>  CC [M]
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/lttng-probe-sched.o
>  CC [M]
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/lttng-probe-irq.o
>  CC [M]
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/lttng-probe-timer.o
>  CC [M]
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/lttng-probe-kmem.o
> In file included from
>
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/../instrumentation/events
> /lttng-module/../../../probes/define_trace.h:136:0,
>                 from
>
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/../instrumentation/events
> /lttng-module/kmem.h:465,
>                 from
>
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/lttng-probe-kmem.c:42:
>
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/../instrumentation/events/lttng-module/../../..
> /probes/lttng-events.h:180:6: error: conflicting types for
> 'trace_mm_page_alloc_extfrag'
> void trace_##_name(_proto);
>      ^
>
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/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))
>  ^
>
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/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,    \
>  ^
>
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/../instrumentation/events/lttng-module/../../..
> /probes/../instrumentation/events/lttng-module/kmem.h:334:1: note: in
> expansion of macro 'LTTNG_TRACEPOINT_EVENT'
> LTTNG_TRACEPOINT_EVENT(mm_page_alloc_extfrag,
> ^
> In file included from
>
> /nix/store/5ib7vccbi3mj9y0hr0snas00lagjbai1-linux-3.14.36-dev/lib/modules/3.14.36/source/include/linux/module.h
> :18:0,
>                 from
>
> /tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/lttng-probe-kmem.c:24:
>
> /nix/store/5ib7vccbi3mj9y0hr0snas00lagjbai1-linux-3.14.36-dev/lib/modules/3.14.36/source/include/linux/tracepoint.h:168:21:
> note: pre
> vious definition of 'trace_mm_page_alloc_extfrag' was here
>  static inline void trace_##name(proto)    \
>                     ^
>
> /nix/store/5ib7vccbi3mj9y0hr0snas00lagjbai1-linux-3.14.36-dev/lib/modules/3.14.36/source/include/linux/tracepoint.h:265:3:
> note: in e
> xpansion of macro '__DECLARE_TRACE'
>   __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
>   ^
>
> /nix/store/5ib7vccbi3mj9y0hr0snas00lagjbai1-linux-3.14.36-dev/lib/modules/3.14.36/source/include/linux/tracepoint.h:399:2:
> note: in e
> xpansion of macro 'DECLARE_TRACE'
>  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
>  ^
>
> /nix/store/5ib7vccbi3mj9y0hr0snas00lagjbai1-linux-3.14.36-dev/lib/modules/3.14.36/source/include/trace/events/kmem.h:267:1:
> note: in
> expansion of macro 'TRACE_EVENT'
> TRACE_EVENT(mm_page_alloc_extfrag,
> ^
>
> /nix/store/5ib7vccbi3mj9y0hr0snas00lagjbai1-linux-3.14.36-dev/lib/modules/3.14.36/source/scripts/Makefile.build:314:
> recipe for targe
> t
> '/tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/lttng-probe-kmem.o'
> failed
> make[5]: ***
> [/tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes/lttng-probe-kmem.o]
> Error 1
>
> /nix/store/5ib7vccbi3mj9y0hr0snas00lagjbai1-linux-3.14.36-dev/lib/modules/3.14.36/source/scripts/Makefile.build:455:
> recipe for targe
> t
> '/tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes'
> failed
> make[4]: ***
> [/tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules/probes]
> Error 2
>
> /nix/store/5ib7vccbi3mj9y0hr0snas00lagjbai1-linux-3.14.36-dev/lib/modules/3.14.36/source/Makefile:1276:
> recipe for target '_module_/t
>
> mp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules'
> failed
> make[3]: ***
> [_module_/tmp/nix-build-lttng-modules-2.6.0-rc1-20-g99a570c-3.14.36.drv-0/lttng-modules]
> Error 2
> Makefile:133: recipe for target 'sub-make' failed
> make[2]: *** [sub-make] Error 2
> Makefile:26: recipe for target 'all' failed
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
>
> '/nix/store/5ib7vccbi3mj9y0hr0snas00lagjbai1-linux-3.14.36-dev/lib/modules/3.14.36/build'
> Makefile:70: recipe for target 'default' failed
> make: *** [default] Error 2
>
> Best regards,
> Bjørn Forsman
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150321/4aa3f378/attachment.html>


More information about the lttng-dev mailing list