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!
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Reply via email to