<div dir="ltr"><div>Hi all</div><div><br></div><div>I've been trying to compile LTTng for android on arm architecture. Taking reference from <a href="https://lists.lttng.org/pipermail/lttng-dev/2013-February/019652.html" target="_blank">https://lists.lttng.org/<wbr>pipermail/lttng-dev/2013-<wbr>February/019652.html</a> I've been building Lttng-UST and Lttng-tools. Cross-compiling the kernel is having some issues:</div><div><br></div><div><span><span>Using the following command to cross-compile Lttng modules:</span></span></div><div><span><span>make KERNELDIR=/local....../obj/<wbr>KERNEL_OBJ/ ARCH=arm64 CROSS_COMPILE=/local/..../<wbr>prebuilts/gcc/linux-x86/<wbr>aarch64/aarch64-linuxandroid-<wbr>4.9/bin/aarch64-linux-android-</span></span></div><span><div>But it gives the following errors:</div><div><br></div><div>error: conflicting types for 'trace_sched_migrate_task'<br> void trace_##_name(_proto);<br>      ^<br>/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'<br>  LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))<br>  ^<br>/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'<br>  LTTNG_TRACEPOINT_EVENT_MAP(name, name,    \<br>  ^<br>/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'<br> LTTNG_TRACEPOINT_EVENT(sched_migrate_task,<br> ^<br>In file included from /local/..../kernel/include/linux/module.h:18:0,<br>                 from /local/....../../lttng_pos/lttng-modules-2.9.3/probes/lttng-probe-sched.c:23:<br>/local/....../kernel/include/linux/tracepoint.h:168:21: note: previous definition of 'trace_sched_migrate_task' was here<br>  static inline void trace_##name(proto)    \<br>                     ^<br>/local/..../kernel/include/linux/tracepoint.h:275:3: note: in expansion of macro '__DECLARE_TRACE'<br>   __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \<br>   ^<br>/local/.../kernel/include/linux/tracepoint.h:405:2: note: in expansion of macro 'DECLARE_TRACE'<br>  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))<br>  ^<br>/local/..../kernel/include/trace/events/sched.h:580:1: note: in expansion of macro 'TRACE_EVENT'<br> TRACE_EVENT(sched_migrate_task,<br></div><div><br></div><div>Am I not compiling the kernel modules how it's supposed to be? </div><div><br></div><div>Thank you</div><div>Saty Anand<span><span><br></span></span></div><span></span></span></div>