* [lttng-dev] Check if userland tracing enabled
@ 2017-09-22 14:06 Simon Crowe
2017-09-22 14:59 ` Philippe Proulx
0 siblings, 1 reply; 2+ messages in thread
From: Simon Crowe @ 2017-09-22 14:06 UTC (permalink / raw)
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
Regards
Si
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20170922/3f3ce614/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [lttng-dev] Check if userland tracing enabled
2017-09-22 14:06 [lttng-dev] Check if userland tracing enabled Simon Crowe
@ 2017-09-22 14:59 ` Philippe Proulx
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Proulx @ 2017-09-22 14:59 UTC (permalink / raw)
On Fri, Sep 22, 2017 at 10:06 AM, Simon Crowe <smncrowe at gmail.com> 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 <http://lttng.org/man/3/lttng-ust/v2.10/#doc-tracepoint>.
Phil
>
> Regards
>
> Si
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-22 14:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-22 14:06 [lttng-dev] Check if userland tracing enabled Simon Crowe
2017-09-22 14:59 ` Philippe Proulx
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox