[lttng-dev] lttng-modules build fail on Jetson TK1

Alexis Martin alexis.martin at inria.fr
Tue Mar 22 14:07:14 UTC 2016


Hi,

I’m trying to install lttng on my Jetson TK1, but I can’t build the lttng kernel module.

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)
This kernel satisfies configuration required (CONFIG_MODULES,CONFIG_KALLSYMS,CONFIG_HIGH_RES_TIMERS,CONFIG_TRACEPOINTS).

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:

> ubuntu at tegra-ubuntu:~/install-lttng/lttng-modules$ make 
> make -C /lib/modules/3.10.40-gdacac96/build M=/home/ubuntu/install-lttng/lttng-modules CONFIG_LTTNG=m modules
> make[1]: Entering directory `/usr/src/linux-headers-3.10.40-gdacac96'
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-client-discard.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-client-overwrite.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-metadata-client.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-client-mmap-discard.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-client-mmap-overwrite.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-ring-buffer-metadata-mmap-client.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-clock.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-statedump-impl.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/wrapper/irqdesc.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/wrapper/fdtable.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-events.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-abi.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-probes.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-pid.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-procname.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-prio.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-nice.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-vpid.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-tid.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-vtid.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-ppid.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-vppid.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-cpu-id.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-interruptible.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-need-reschedule.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-calibrate.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-context-hostname.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/wrapper/random.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/probes/lttng.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/wrapper/trace-clock.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/wrapper/page_alloc.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-tracker-pid.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-filter.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-filter-interpreter.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-filter-specialize.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-filter-validator.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/probes/lttng-probe-user.o
>   CC [M]  /home/ubuntu/install-lttng/lttng-modules/lttng-syscalls.o
> /home/ubuntu/install-lttng/lttng-modules/instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_integers.h:14:11: error: expected ‘)’ before ‘(’ token
>   TP_FIELDS()
>            ^
> /home/ubuntu/install-lttng/lttng-modules/lttng-syscalls.c:97:25: note: in definition of macro ‘PARAMS’
>  #define PARAMS(args...) args
>                          ^
> /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’
>  SC_LTTNG_TRACEPOINT_EVENT_CLASS_NOARGS(syscalls_noargs,
>  ^
> /home/ubuntu/install-lttng/lttng-modules/lttng-syscalls.c:286:41: error: array type has incomplete element type
>  static const struct trace_syscall_entry sc_table[] = {
>                                          ^
> In file included from /home/ubuntu/install-lttng/lttng-modules/instrumentation/syscalls/headers/arm-32-syscalls-3.4.25_integers.h:828:0,
>                  from /home/ubuntu/install-lttng/lttng-modules/instrumentation/syscalls/headers/syscalls_integers.h:10,
>                  from /home/ubuntu/install-lttng/lttng-modules/lttng-syscalls.c:287:
> /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
>  TRACE_SYSCALL_TABLE(mmap, mmap, 90, 6)
>  ^
> /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’)
> /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
> /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’)
> /home/ubuntu/install-lttng/lttng-modules/lttng-syscalls.c:279:11: error: ‘__event_probe__syscall_entry_mmap’ undeclared here (not in a function)
>    .func = __event_probe__syscall_entry_##_template, \
>
Any idea of the cause of this error ?
I saw the file arm-32-syscalls-3.4.25_integers.h is auto-generated, should the number match my kernel version ?

Thanks,
—
Alexis Martin
PhD. Student
INRIA / LIG POLARIS-Team

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20160322/e0e02e29/attachment-0001.html>


More information about the lttng-dev mailing list