[lttng-dev] lttng-track by process/thread name
mathieu.desnoyers at efficios.com
Thu Mar 21 13:24:28 EDT 2019
----- On Mar 21, 2019, at 12:21 PM, lttng-dev lttng-dev at lists.lttng.org wrote:
> Hey all,
> I stumbled upon lttng-track which sounds quite useful when one wants to
> concentrate on the events of a single process. But how is one supposed to use
> this? Usually, I start lttng before I start my application - I thus don't know
> the PID yet. Is there a trick that I'm not aware of, or can it really only be
> used to track after starting an application?
At the moment, you need to know which PID you want to track.
I have a prototype using ptrace to do something similar to
strace --follow-children /path/to/executable
but I only had time to do the underlying plumbing. All the user interface
needs to be designed and implemented. If you are interested to look into this
I could dig out my prototype branch.
More information about the lttng-dev