[lttng-dev] Adding thread timestamp to event context

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Fri Oct 26 05:49:12 EDT 2018


You are the first to show interest in this. It is not on our roadmap for the moment. 

Thanks, 

Mathieu 

----- On Oct 25, 2018, at 10:33 PM, Alok Priyadarshi <alokpr at gmail.com> wrote: 

> Thanks for your prompt response Mathieu. Can I expect this to happen soonish?

> On Thu, Oct 25, 2018 at 6:02 AM Mathieu Desnoyers < [
> mailto:mathieu.desnoyers at efficios.com | mathieu.desnoyers at efficios.com ] >
> wrote:

>> ----- On Oct 24, 2018, at 11:05 PM, Alok Priyadarshi < [ mailto:alokpr at gmail.com
>> | alokpr at gmail.com ] > wrote:

>>> I am trying to add a thread timestamp to trace events. By thread timestamp I
>>> mean the value returned by clock_gettime(CLOCK_THREAD_CPUTIME_ID):
>>> [ https://linux.die.net/man/3/clock_gettime |
>>> https://linux.die.net/man/3/clock_gettime ]

>>> I could do this by creating custom events, but I am wondering if there is
>>> already a way to add this information to event context. I have tried using the
>>> following arguments to lttng-add-context, but none of them add any additional
>>> information:
>>> perf:cpu:cpu-cycles
>>> perf:cpu:cycles
>>> perf:thread:cpu-cycles
>>> perf:thread:cycles

>>> Note that I have only enabled userspace events. I use the following sequence of
>>> commands to capture trace:
>>> lttng create
>>> lttng enable-event --userspace --all
>>> lttng add-context --userspace -t vpid -t vtid -t perf:thread:cycles
>>> lttng start
>>> lttng stop

>> We would need to extend lttng-ust implementation and lttng-tools to add those
>> additional contexts. It would make sense to add these.

>> Thanks,

>> Mathieu

>>> _______________________________________________
>>> lttng-dev mailing list
>>> [ mailto:lttng-dev at lists.lttng.org | lttng-dev at lists.lttng.org ]
>>> [ https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev |
>>> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev ]

>> --
>> Mathieu Desnoyers
>> EfficiOS Inc.
>> [ http://www.efficios.com/ | http://www.efficios.com ]

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20181026/35eb076b/attachment.html>


More information about the lttng-dev mailing list