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

Sebastien Boisvert sboisvert at gydle.com
Mon Nov 28 17:14:41 UTC 2016


Thanks ! That worked !

On 28/11/2016 18:06, Mathieu Desnoyers wrote:
> 
> ----- 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
> 

-- 
Dr. Sébastien BOISVERT, Ph.D.
Bioinformatics Software Specialist / Bioinformaticien
GYDLE inc.
sboisvert at gydle.com
+33 4 92 28 02 50 (Fixe, France)
+1 418 907 9377 # 380 (Québec Gydle Office)
101-1332 Av. Chanoine Morel
Québec, QC G1S 4B4, Canada
http://www.gydle.com/


More information about the lttng-dev mailing list