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

Jonathan Rajotte-Julien jonathan.rajotte-julien at efficios.com
Wed Jul 12 15:34:28 UTC 2017


Hi,

Could you give us a little more context so we can try it ourself ?
Git repo of android/kernel you are using, toolchains source/link?

Cheers

On Wed, Jul 12, 2017 at 03:55:07PM +0530, Saty Anand wrote:
> 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

> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


-- 
Jonathan Rajotte-Julien
EfficiOS


More information about the lttng-dev mailing list