Bug #1185
closedFailing to enable kernel channel through Python bindings
0%
Description
I'm trying to use the Python bindings to setup & start a tracing session.
Creating a (kernel) channel fails with a "Not enough memory" error message (returned by the enable_channel() call). Removing the kernel stuff and only using a UST domain+tracepoints works fine. Also, using a bash script to setup a UST+kernel session through CLI works fine.
Note that I'm calling the Python script through a ROS2 command, but it shouldn't affect anything.
Python script using bindings: https://pastebin.com/RWjPcReg
Command output (with LTTNG_UST_DEBUG): https://pastebin.com/mnA5sT2L
lttng-sessiond logs (after a lttng-sessiond stop+start): https://pastebin.com/Lq9LCyG9
Version/other info
Both from PPA:
liblttng-ust-dev:amd64/bionic 2.10.1-1
lttng-tools:amd64/bionic 2.10.2-1
$ uname -a
Linux HP-EliteBook-840-G3 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ df -h /dev/shm
Filesystem Size Used Avail Use% Mounted on
tmpfs 7,8G 178M 7,6G 3% /dev/shm
$ cat /proc/meminfo
https://pastebin.com/8ihp27YD
$ lsmod | grep lttng
https://pastebin.com/iT0srSjy
Files