Bug 8476 - [lttng] Version 2.6.0 unusable with kernel v4.0.0
Summary: [lttng] Version 2.6.0 unusable with kernel v4.0.0
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Outdated package (show other bugs)
Version: unspecified
Hardware: PC All
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-25 16:22 UTC by Julien BARON
Modified: 2015-11-29 23:02 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien BARON 2015-11-25 16:22:56 UTC
Generating a build using buildroot with linux kernel v4.0.0 and lttng packages generates the following error :

  CC [M]  /continuus/jb01445/hg/br-top/buildroot/output/build/lttng-modules-2.6.0/probes/lttng-probe-block.o
In file included from /continuus/jb01445/hg/br-top/buildroot/output/build/lttng-modules-2.6.0/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:136:0,
                 from /continuus/jb01445/hg/br-top/buildroot/output/build/lttng-modules-2.6.0/probes/../instrumentation/events/lttng-module/kmem.h:380,
                 from /continuus/jb01445/hg/br-top/buildroot/output/build/lttng-modules-2.6.0/probes/lttng-probe-kmem.c:42:
/continuus/jb01445/hg/br-top/buildroot/output/build/lttng-modules-2.6.0/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:180:6: error: conflicting types for ‘trace_mm_page_alloc_extfrag’
 void trace_##_name(_proto);
      ^
/continuus/jb01445/hg/br-top/buildroot/output/build/lttng-modules-2.6.0/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))
  ^
/continuus/jb01445/hg/br-top/buildroot/output/build/lttng-modules-2.6.0/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,    \
  ^
/continuus/jb01445/hg/br-top/buildroot/output/build/lttng-modules-2.6.0/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/kmem.h:291:1: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT’
 LTTNG_TRACEPOINT_EVENT(mm_page_alloc_extfrag,
 ^
In file included from include/trace/events/kmem.h:8:0,
                 from /continuus/jb01445/hg/br-top/buildroot/output/build/lttng-modules-2.6.0/probes/lttng-probe-kmem.c:31:
include/linux/tracepoint.h:169:21: note: previous definition of ‘trace_mm_page_alloc_extfrag’ 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/kmem.h:267:1: note: in expansion of macro ‘TRACE_EVENT’
 TRACE_EVENT(mm_page_alloc_extfrag,
 ^
make[4]: *** [/continuus/jb01445/hg/br-top/buildroot/output/build/lttng-modules-2.6.0/probes/lttng-probe-kmem.o] Error 1

It seems that lttng v2.6.0 does not work with "recent" kernel version. Using lttng-modules 2.6.4, lttng-ust 2.6.4 and lttng-tools 2.6.1 seems to solve the problem.
Comment 1 Vicente Olivert Riera 2015-11-25 16:28:31 UTC
I guess we could update lttng-{libust,modules,tools} to the 2.7.0 version.
Comment 2 Thomas Petazzoni 2015-11-29 23:02:29 UTC
This is fixed by http://git.buildroot.net/buildroot/commit/?h=next&id=c2be38b9e3bee22129b9da160a8d131ce4e1efac, which will be part of the 2016.02 release. It was too late for this version bump to be part of 2015.11.