Actions
Bug #1358
openFailed to deploy lttng modules on NVIDIA jetson device
Start date:
09/13/2022
Due date:
% Done:
0%
Estimated time:
Description
Hello, I installed lttng and lttng modules on NVIDIA Orin.
When using apt install, the results are as follows.
# lttng list --kernel
Error: Unable to list kernel events: Kernel tracer not available
#ps aux | grep lttng-sessiond
root 52100 0.0 0.0 1022064 12736 ? Ssl 15:05 0:00 /usr/bin/lttng-sessiond
root 52101 0.0 0.0 41968 664 ? S 15:05 0:00 /usr/bin/lttng-sessiond
orin-d 62549 0.0 0.0 11640 684 pts/0 S+ 20:54 0:00 grep --color=auto lttng-sessiond
# dpkg -l | grep lttng ii liblttng-ctl0:arm64 2.12.4-1~ubuntu20.04.1 arm64 LTTng control and utility library ii liblttng-ust-ctl4:arm64 2.12.2-1~ubuntu20.04.1 arm64 LTTng 2.0 Userspace Tracer (trace control library) ii liblttng-ust-dev:arm64 2.12.2-1~ubuntu20.04.1 arm64 LTTng 2.0 Userspace Tracer (development files) ii liblttng-ust-python-agent0:arm64 2.12.2-1~ubuntu20.04.1 arm64 LTTng 2.0 Userspace Tracer (Python agent native library) ii liblttng-ust0:arm64 2.12.2-1~ubuntu20.04.1 arm64 LTTng 2.0 Userspace Tracer (tracing libraries) ii lttng-modules-dkms 2.12.6-1~ubuntu20.04.1 all Linux Trace Toolkit (LTTng) kernel modules (DKMS) ii lttng-tools 2.12.4-1~ubuntu20.04.1 arm64 LTTng control and utility programs ii python3-lttng 2.12.4-1~ubuntu20.04.1 arm64 LTTng control and utility Python bindings
The device information is as follows.
# uname -a
Linux orind-d 5.10.65-tegra #2 SMP PREEMPT Thu Jun 16 18:24:26 CST 2022 aarch64 aarch64 aarch64 GNU/Linux
# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
At the same time, I tried the method of source code, such as the source code installation method introduced in https://lttng.org/docs/v2.13/.
# dpkg -l | grep -e libuuid -e popt -e userspace -e libxml2 ii can-utils 2018.02.0-1ubuntu1 arm64 SocketCAN userspace utilities and tools ii dmsetup 2:1.02.167-1ubuntu1 arm64 Linux Kernel Device Mapper userspace library ii gvfs:arm64 1.44.1-1ubuntu1 arm64 userspace virtual filesystem - GIO module ii gvfs-backends 1.44.1-1ubuntu1 arm64 userspace virtual filesystem - backends ii gvfs-bin 1.44.1-1ubuntu1 arm64 userspace virtual filesystem - deprecated command-line tools ii gvfs-common 1.44.1-1ubuntu1 all userspace virtual filesystem - common data files ii gvfs-daemons 1.44.1-1ubuntu1 arm64 userspace virtual filesystem - servers ii gvfs-fuse 1.44.1-1ubuntu1 arm64 userspace virtual filesystem - fuse server ii gvfs-libs:arm64 1.44.1-1ubuntu1 arm64 userspace virtual filesystem - private libraries ii libdevmapper1.02.1:arm64 2:1.02.167-1ubuntu1 arm64 Linux Kernel Device Mapper userspace library ii libi2c0:arm64 4.1-2build2 arm64 userspace I2C programming library ii libibverbs1:arm64 28.0-1ubuntu1 arm64 Library for direct userspace use of RDMA (InfiniBand/iWARP) ii libnftnl11:arm64 1.1.5-1 arm64 Netfilter nftables userspace API library ii libpopt-dev:arm64 1.16-14 arm64 lib for parsing cmdline parameters - development files ii libpopt0:arm64 1.16-14 arm64 lib for parsing cmdline parameters ii liburcu-dev:arm64 0.12.2-1~ubuntu20.04.2 arm64 userspace RCU (read-copy-update) library - development files ii liburcu6:arm64 0.12.2-1~ubuntu20.04.2 arm64 userspace RCU (read-copy-update) library ii libusb-1.0-0:arm64 2:1.0.23-2build1 arm64 userspace USB programming library ii libusb-1.0-0-dev:arm64 2:1.0.23-2build1 arm64 userspace USB programming library development files ii libuuid1:arm64 2.34-0.1ubuntu9.3 arm64 Universally Unique ID library ii libxml2:arm64 2.9.10+dfsg-5ubuntu0.20.04.1 arm64 GNOME XML library ii libxml2-dev:arm64 2.9.10+dfsg-5ubuntu0.20.04.1 arm64 Development files for the GNOME XML library ii libxml2-utils 2.9.10+dfsg-5ubuntu0.20.04.3 arm64 XML utilities ii network-manager 1.22.10-1ubuntu2.3 arm64 network management framework (daemon and userspace tools) ii nvidia-l4t-optee 34.1.0-20220406120854 arm64 OP-TEE userspace daemons, test programs and libraries ii python3-lxml:arm64 4.5.0-1ubuntu0.5 arm64 pythonic binding for the libxml2 and libxslt libraries
sudo ln -snf /usr/src/linux-headers-5.10.65-tegra-ubuntu20.04_aarch64/kernel-5.10 /lib/modules/5.10.65-tegra/build
# orin-d@orind-d:~/tmp/lttng-modules-2.13.5$ make /home/orin-d/tmp/lttng-modules-2.13.5/src/wrapper/kallsyms.c:20:3: error: #error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0" 20 | # error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0" | ^~~~~ make[2]: *** [scripts/Makefile.build:281: /home/orin-d/tmp/lttng-modules-2.13.5/src/wrapper/kallsyms.o] Error 1 make[1]: *** [Makefile:1852: /home/orin-d/tmp/lttng-modules-2.13.5/src] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.10.65-tegra-ubuntu20.04_aarch64/kernel-5.10' make: *** [Makefile:31: modules] Error 2
Files
Actions