From mboxrd@z Thu Jan 1 00:00:00 1970 From: eeppeliteloop@gmail.com (Philippe Proulx) Date: Fri, 22 Sep 2017 10:59:56 -0400 Subject: [lttng-dev] Check if userland tracing enabled In-Reply-To: References: Message-ID: On Fri, Sep 22, 2017 at 10:06 AM, Simon Crowe wrote: > All, > > I am looking a userland C program, but i want the application to do a little > extra work when there is a tracing session active, is there fast call I > could use which would tell me if a tracing session is in progress on my app > or particular trace name You can use tracepoint_enabled() and do_tracepoint() at least, which is somewhat equivalent. See . Phil > > Regards > > Si > > _______________________________________________ > lttng-dev mailing list > lttng-dev at lists.lttng.org > https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev >