<div dir="ltr">Daniel and Jonathan,<div><br></div><div>Thanks for your replies!</div><div><br></div><div>Sorry I wasn't clear enough -- I want to check it in my application to avoid 'heavy' calculation of probe arguments when the probe is actually disabled.</div>
<div>Please see this blog entry for description of dtrace feature in question -- <a href="http://dtrace.org/blogs/ahl/2006/05/08/user-land-tracing-gets-better-and-better/" target="_blank">http://dtrace.org/blogs/ahl/2006/05/08/user-land-tracing-gets-better-and-better/</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 25, 2014 at 6:49 PM, Jonathan Rajotte-Julien <span dir="ltr"><<a href="mailto:jonathan.rajotte-julien@ericsson.com" target="_blank">jonathan.rajotte-julien@ericsson.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can also list all ust events available for tracing via the command "lttng list -u".<br>
<br>
Make sure that the application you want to trace is running.<br>
<br>
On 06/25/2014 10:40 AM, Thibault, Daniel wrote:<br>
> ----------------------------------------------------------------------<br>
> Date: Sun, 22 Jun 2014 19:27:31 +0400<br>
> From: Dmitri Shubin <<a href="mailto:sbn@tbricks.com">sbn@tbricks.com</a>><br>
><br>
>> In dtrace it's possible to check if some probe is currently enabled or not (to avoid argument preparation for disabled probes).<br>
>> But I'm unable to find similar feature in lttng-ust (at least it's not mentioned in lttng-ust man page).<br>
>><br>
>> Am I missed it or it's not implemented on purpose?<br>
><br>
> Use the list command. A command such as 'lttng list <session_name>' will list the known events and their enabled/disabled status. You can filter the command's output by specifying a domain (--userspace) and/or a channel (--channel <channel_name>). For example:<br>
><br>
> (begin example)<br>
> $ lttng create some_session<br>
> Session some_session created.<br>
> Traces will be written in /home/username/lttng-traces/ some_session-20140625-102709<br>
> $ lttng enable-event -u some_event<br>
> UST event some_event created in channel channel0<br>
> $ lttng list some_session -u --channel channel0<br>
> Tracing session some_session: [inactive]<br>
> Trace path: /home/username/lttng-traces/ some_session-20140625-102709<br>
><br>
> === Domain: UST global ===<br>
><br>
> Buffer type: per UID<br>
><br>
> - channel0: [enabled]<br>
><br>
> Attributes:<br>
> overwrite mode: 0<br>
> subbuffers size: 131072<br>
> number of subbufers: 4<br>
> switch time interval: 0<br>
> read time interval: 0<br>
> output: mmap()<br>
><br>
> Events:<br>
> some_event (type: tracepoint) [enabled]<br>
> (end example)<br>
><br>
> You can take a look at /usr/src/lttng-tools/src/bin/lttng/commands/list.c to see how the information is obtained.<br>
><br>
> Daniel U. Thibault<br>
> Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)<br>
> Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)<br>
> RDDC - Centre de recherches de Valcartier | DRDC - Valcartier Research Centre<br>
> 2459 route de la Bravoure<br>
> Québec QC G3J 1X5<br>
> CANADA<br>
> Vox : (418) 844-4000 x4245<br>
> Fax : (418) 844-4538<br>
> NAC : 918V QSDJ <<a href="http://www.travelgis.com/map.asp?addr=918V%20QSDJ" target="_blank">http://www.travelgis.com/map.asp?addr=918V%20QSDJ</a>><br>
> Gouvernement du Canada | Government of Canada<br>
> <<a href="http://www.valcartier.drdc-rddc.gc.ca/" target="_blank">http://www.valcartier.drdc-rddc.gc.ca/</a>><br>
><br>
> _______________________________________________<br>
> lttng-dev mailing list<br>
> <a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
> <a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
><br>
<br>
<br>
_______________________________________________<br>
lttng-dev mailing list<br>
<a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
<a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
</blockquote></div><br></div>