* [lttng-dev] lttng-track on userspace channel
@ 2017-05-31 23:28 Deneau, Tom
0 siblings, 0 replies; only message in thread
From: Deneau, Tom @ 2017-05-31 23:28 UTC (permalink / raw)
I am using lttng 2.9.4.
I have a server database daemon with many threads and I would like to track events on a smaller subset of those threads.
I noticed that on the kernel channel I can use lttng track --pid=123,124,125
and this will trace kernel events for just those TIDS (in spite of the documentation saying it will track whole pids).
But I am happy because tid tracking is what I want.
However, is there an equivalent way to track certain tids on the userspace channel? I find that if I use
lttng track -u --pid=xxx
it just tracks all the tids under that pid.
Here is my script (where 79653 is a single tid). In this case it traces only kernel events on that tid.
-----------
lttng create
lttng enable-channel u -u --num-subbuf 64 --subbuf-size 512k
lttng enable-channel k -k --num-subbuf 64 --subbuf-size 512k
lttng add-context -k -c k -t tid -t pid
lttng add-context -u -c u -t vtid -t vpid
lttng enable-event -u -c u -a
lttng enable-event -k -c k --syscall futex
lttng track -k --pid=79653
lttng track -u --pid=79653
lttng start
sleep 1.0
lttng stop
lttng destroy
-- Tom Deneau
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-31 23:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-31 23:28 [lttng-dev] lttng-track on userspace channel Deneau, Tom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox