[lttng-dev] How to check is tracepoint is currently enabled (UST)

Dmitri Shubin sbn at tbricks.com
Sun Jun 22 11:27:31 EDT 2014


Hi,

In dtrace it's possible to check if some probe is currently enabled or not
(to avoid argument preparation for disabled probes).
But I'm unable to find similar feature in lttng-ust (at least it's not
mentioned in lttng-ust man page).

Am I missed it or it's not implemented on purpose?

>From what I see in lttng/tracepoint.h it can be implemented like

#define tracepoint_enabled(provider,
name) caa_unlikely(__tracepoint_##provider##___##name.state)

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140622/992a6551/attachment.html>


More information about the lttng-dev mailing list