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

Sebastien Boisvert sboisvert at gydle.com
Mon Nov 28 17:02:11 UTC 2016


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 ?


-------
[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
> 



More information about the lttng-dev mailing list