From: eeppeliteloop@gmail.com (Philippe Proulx)
Subject: [lttng-dev] Check if userland tracing enabled
Date: Fri, 22 Sep 2017 10:59:56 -0400 [thread overview]
Message-ID: <CAB4xu_2OPW9zWEVV_uf64-6BRqvNSMvh-H95v92_NpHH62G3OQ@mail.gmail.com> (raw)
In-Reply-To: <CABx8MC-Qx9PS9rpKYcOubbRS3gsUbKbFFFvuEFHs-QG00MWXdw@mail.gmail.com>
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
>
prev parent reply other threads:[~2017-09-22 14:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-22 14:06 Simon Crowe
2017-09-22 14:59 ` Philippe Proulx [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAB4xu_2OPW9zWEVV_uf64-6BRqvNSMvh-H95v92_NpHH62G3OQ@mail.gmail.com \
--to=eeppeliteloop@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox