<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>You are the first to show interest in this. It is not on our roadmap for the moment.<br></div><div><br data-mce-bogus="1"></div><div>Thanks,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu<br data-mce-bogus="1"></div><div><br></div><div><span id="zwchr" data-marker="__DIVIDER__">----- On Oct 25, 2018, at 10:33 PM, Alok Priyadarshi <alokpr@gmail.com> wrote:<br></span></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr">Thanks for your prompt response Mathieu. Can I expect this to happen soonish?<br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 25, 2018 at 6:02 AM Mathieu Desnoyers <<a href="mailto:mathieu.desnoyers@efficios.com" target="_blank">mathieu.desnoyers@efficios.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div><span id="m_236129768240517735zwchr">----- On Oct 24, 2018, at 11:05 PM, Alok Priyadarshi <<a href="mailto:alokpr@gmail.com" target="_blank">alokpr@gmail.com</a>> wrote:<br></span></div></div></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><div dir="ltr">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):<div><a href="https://linux.die.net/man/3/clock_gettime" target="_blank">https://linux.die.net/man/3/clock_gettime</a><br></div><br><div>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:</div><div><div>perf:cpu:cpu-cycles</div><div>perf:cpu:cycles</div></div><div><div>perf:thread:cpu-cycles</div><div>perf:thread:cycles</div></div><br><div>Note that I have only enabled userspace events. I use the following sequence of commands to capture trace:</div><div><div>lttng create</div><div>lttng enable-event --userspace --all</div><div>lttng add-context --userspace -t vpid -t vtid -t perf:thread:cycles</div><div>lttng start</div><div>lttng stop</div></div></div></blockquote></div></div></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div><div>We would need to extend lttng-ust implementation and lttng-tools to add those<br></div><div>additional contexts. It would make sense to add these.<br></div><br><div>Thanks,<br></div><br><div>Mathieu<br></div><br><br><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><div dir="ltr"><br></div>
<br>_______________________________________________<br>lttng-dev mailing list<br><a href="mailto:lttng-dev@lists.lttng.org" target="_blank">lttng-dev@lists.lttng.org</a><br><a href="https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br></blockquote></div></div></div><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><br><div>-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br><a href="http://www.efficios.com" target="_blank">http://www.efficios.com</a><br data-mce-bogus="1"></div></div></div></blockquote></div><br></blockquote></div><div><br></div><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>