[lttng-dev] cross-compiling LTTNG for android on arm64

Saty Anand satyanandiam at gmail.com
Wed Jul 12 10:25:07 UTC 2017


Hi all

I've been trying to compile LTTng for android on arm architecture. Taking
reference from https://lists.lttng.org/pipermail/lttng-dev/2013-
February/019652.html I've been building Lttng-UST and Lttng-tools.
Cross-compiling the kernel is having some issues:

Using the following command to cross-compile Lttng modules:
make KERNELDIR=/local....../obj/KERNEL_OBJ/ ARCH=arm64
CROSS_COMPILE=/local/..../prebuilts/gcc/linux-x86/
aarch64/aarch64-linuxandroid-4.9/bin/aarch64-linux-android-
But it gives the following errors:

error: conflicting types for 'trace_sched_migrate_task'
 void trace_##_name(_proto);
      ^
/local/......./../lttng_pos/lttng-modules-2.9.3/probes/../probes/lttng-tracepoint-event-impl.h:54:2:
note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP'
  LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto),
PARAMS(args))
  ^
/local/......./../lttng_pos/lttng-modules-2.9.3/probes/../probes/lttng-tracepoint-event-impl.h:96:2:
note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_MAP'
  LTTNG_TRACEPOINT_EVENT_MAP(name, name,    \
  ^
/local/...../../lttng_pos/lttng-modules-2.9.3/probes/../instrumentation/events/lttng-module/sched.h:285:1:
note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'
 LTTNG_TRACEPOINT_EVENT(sched_migrate_task,
 ^
In file included from /local/..../kernel/include/linux/module.h:18:0,
                 from
/local/....../../lttng_pos/lttng-modules-2.9.3/probes/lttng-probe-sched.c:23:
/local/....../kernel/include/linux/tracepoint.h:168:21: note: previous
definition of 'trace_sched_migrate_task' was here
  static inline void trace_##name(proto)    \
                     ^
/local/..../kernel/include/linux/tracepoint.h:275:3: note: in expansion of
macro '__DECLARE_TRACE'
   __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
   ^
/local/.../kernel/include/linux/tracepoint.h:405:2: note: in expansion of
macro 'DECLARE_TRACE'
  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
  ^
/local/..../kernel/include/trace/events/sched.h:580:1: note: in expansion
of macro 'TRACE_EVENT'
 TRACE_EVENT(sched_migrate_task,

Am I not compiling the kernel modules how it's supposed to be?

Thank you
Saty Anand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20170712/aaf5cf52/attachment.html>


More information about the lttng-dev mailing list