Thanks for the quick response, appreciate it.
At a high level this is what I did.
- reboot
- login as sudo
- set LD_LIBRARY_PATH to point to right locations
- ldd of executable to show right library versions are picked up
- execute the workload by specifiy LD_PRELOAD env variable
- expect to see a trace file in my $HOME/ltt* directory
When I say FAIL, I mean that there was no trace file in my home directory ~/lttng*
I have not run any lttng commands besides what I already gave. If they are needed, I don't know what they are.
I tried experimenting with lttng commands create and list. The command to list "traceable" points returned an error as included below.
root@RocrLnx23:~/git/compute/out/ubuntu-18.04/18.04/bin# ls ~/ | grep -i ltt
root@RocrLnx23:~/git/compute/out/ubuntu-18.04/18.04/bin# lttng create my-kernel-session --output=~/my-kernel-trace
Session my-kernel-session created.
Traces will be output to /home/user1/git/compute/out/ubuntu-18.04/18.04/bin/~/my-kernel-trace
root@RocrLnx23:~/git/compute/out/ubuntu-18.04/18.04/bin# lttng list --kernel
Error: Unable to list kernel events: Kernel tracer not available
root@RocrLnx23:~/git/compute/out/ubuntu-18.04/18.04/bin#
A grep for lttng related processes shows me a daemon service running.
root@RocrLnx23:~/git/compute/out/ubuntu-18.04/18.04/bin# ps -ef | grep ltt
root 1002 1 0 12:16 ? 00:00:00 /usr/bin/lttng-sessiond
root 1054 1002 0 12:16 ? 00:00:00 /usr/bin/lttng-sessiond
root 3145 2861 0 12:51 pts/0 00:00:00 grep --color=auto ltt
root@RocrLnx23:~/git/compute/out/ubuntu-18.04/18.04/bin#