<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I’m trying to install lttng on my Jetson TK1, but I can’t build the lttng kernel module.</div><div class=""><br class=""></div><div class="">I’m running the last kernel available from JetPack2.1, Linux for Tegra r21.4, which is a LTS ubuntu 14.04.4 LTS (GNU/Linux 3.10.40-gdacac96 armv7l)</div><div class="">This kernel satisfies configuration required (<span style="font-family: Menlo; font-size: 11px;" class="">CONFIG_MODULES,</span><span style="font-family: Menlo; font-size: 11px;" class="">CONFIG_KALLSYMS,</span><span style="font-family: Menlo; font-size: 11px;" class="">CONFIG_HIGH_RES_TIMERS,</span><span style="font-family: Menlo; font-size: 11px;" class="">CONFIG_TRACEPOINTS</span>).</div><div class=""><br class=""></div><div class="">I’m using the git tree on tag v2.8.0-rc1. Installation of userspace-rcu, lttng-ust, and lttng-tools was fine, but when I build lttng-modules I got this error related to the TP_FIELDS macro:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""></div><blockquote type="cite" class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ubuntu@tegra-ubuntu:~/install-lttng/lttng-modules$ make </span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">make -C /lib/modules/3.10.40-gdacac96/build M=/home/ubuntu/install-lttng/lttng-modules CONFIG_LTTNG=m modules</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">make[1]: Entering directory `/usr/src/linux-headers-3.10.40-gdacac96'</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-client-discard.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-client-overwrite.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-metadata-client.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-client-mmap-discard.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-client-mmap-overwrite.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-metadata-mmap-client.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-clock.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-statedump-impl.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/wrapper/irqdesc.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/wrapper/fdtable.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-events.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-abi.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-probes.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-pid.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-procname.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-prio.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-nice.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-vpid.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-tid.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-vtid.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-ppid.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-vppid.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-cpu-id.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-interruptible.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-need-reschedule.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-calibrate.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-hostname.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/wrapper/random.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/probes/lttng.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/wrapper/trace-clock.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/wrapper/page_alloc.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-tracker-pid.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-filter.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-filter-interpreter.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-filter-specialize.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-filter-validator.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/probes/lttng-probe-user.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-syscalls.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/home/ubuntu/install-lttng/lttng-modules/instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_integers.h:14:11: error: expected ‘)’ before ‘(’ token</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  TP_FIELDS()</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">           ^</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/home/ubuntu/install-lttng/lttng-modules/lttng-syscalls.c:97:25: note: in definition of macro ‘PARAMS’</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> #define PARAMS(args...) args</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                         ^</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/home/ubuntu/install-lttng/lttng-modules/instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_integers.h:13:1: note: in expansion of macro ‘SC_LTTNG_TRACEPOINT_EVENT_CLASS_NOARGS’</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> SC_LTTNG_TRACEPOINT_EVENT_CLASS_NOARGS(syscalls_noargs,</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> ^</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/home/ubuntu/install-lttng/lttng-modules/lttng-syscalls.c:286:41: error: array type has incomplete element type</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> static const struct trace_syscall_entry sc_table[] = {</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                                         ^</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">In file included from /home/ubuntu/install-lttng/lttng-modules/instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_integers.h:828:0,</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                 from /home/ubuntu/install-lttng/lttng-modules/instrumentation/syscalls/headers/syscalls_integers.h:10,</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                 from /home/ubuntu/install-lttng/lttng-modules/lttng-syscalls.c:287:</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/home/ubuntu/install-lttng/lttng-modules/instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_integers_override.h:131:1: error: array index in non-array initializer</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> TRACE_SYSCALL_TABLE(mmap, mmap, 90, 6)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> ^</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/home/ubuntu/install-lttng/lttng-modules/instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_integers_override.h:131:1: error: (near initialization for ‘sc_table’)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/home/ubuntu/install-lttng/lttng-modules/instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_integers_override.h:131:1: error: field name not in record or union initializer</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/home/ubuntu/install-lttng/lttng-modules/instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_integers_override.h:131:1: error: (near initialization for ‘sc_table’)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/home/ubuntu/install-lttng/lttng-modules/lttng-syscalls.c:279:11: error: ‘__event_probe__syscall_entry_mmap’ undeclared here (not in a function)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">   .func = __event_probe__syscall_entry_##_template, \</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">…</div></blockquote><p style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><br class=""></p><p style="margin: 0px; line-height: normal; min-height: 13px;" class="">Any idea of the cause of this error ?</p><div class="">I saw the file <span style="font-family: Menlo; font-size: 11px;" class="">arm-32-syscalls-3.4.25_integers.h </span>is auto-generated, should the number match my kernel version ?</div><div class=""><br class=""></div><div class="">Thanks,</div></div><div class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">—<br class="">Alexis Martin<br class="">PhD. Student</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">INRIA / LIG POLARIS-Team</div></div></div></div></div>
</div>
<br class=""></div></body></html>