I took a trace using the following commands (see the add-context line for the thread id).
The thread id does not show up in WPA but it shows in TraceCompass.
lttng create sess1 --output /home/user
lttng add-context --userspace --type=vtid --type=pthread_id
lttng enable-event --userspace --all
lttng start sess1
./myapp
lttng destroy sess1
I took a trace using the following commands (see the add-context line for the thread id). The thread id does not show up in WPA but it shows in TraceCompass. lttng create sess1 --output /home/user lttng add-context --userspace --type=vtid --type=pthread_id lttng enable-event --userspace --all lttng start sess1 ./myapp lttng destroy sess1