[lttng-dev] Can I track a single thread with "lttng track" ?

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Mon Nov 28 17:06:02 UTC 2016


----- On Nov 28, 2016, at 12:02 PM, Sebastien Boisvert sboisvert at gydle.com wrote:

> Hi Mathieu,
> 
> In the doc [1], this command is documented:
> 
>    lttng add-context --kernel --channel=my-channel --type=tid
> 
> 
> 
> On the wiki [2], this command is documented:
> 
>    $ lttng add-context -u -e ust_tests_hello:tptest -t pid -t nice -t tid
> 
>	
> 
> However, it seems that context information is only available in the kernel
> tracer:
> 
> root at Z1:/home/sboisvert/gydle-scripts# lttng add-context -k -t tid
> Kernel context tid added to all channels
> 
> root at Z1:/home/sboisvert/gydle-scripts# lttng add-context -u -t tid
> Error: tid: UST invalid context
> Warning: Some command(s) went wrong
> 
> 
> Is there a way around this to use add tid in the context for my UST events ?

Use the "vtid" context.

The wiki is outdated. I will let Philippe have a look at [2] and figure
out if we need to deprecate it. The new lttng documentation has all this
and more...

Thanks,

Mathieu

> 
> 
> -------
> [1] http://lttng.org/docs/v2.8/
> [2] https://bugs.lttng.org/projects/lttng-tools/wiki
> 
> On 28/11/2016 17:33, Mathieu Desnoyers wrote:
>> ----- On Nov 28, 2016, at 11:30 AM, Sebastien Boisvert sboisvert at gydle.com
>> wrote:
>> 
>>> Hi,
>>>
>>> lttng-track has only --pid=. Can I track a single thread with "lttng track" ?
>>>
>>> In perf, there is the option --pid= and --tid=.
>> 
>> No not currently,
>> 
>> Thanks,
>> 
>> Mathieu
>> 
>>> _______________________________________________
>>> lttng-dev mailing list
>>> lttng-dev at lists.lttng.org
>>> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list