From: Anders Johansson <epkboan@gmail.com>
To: lttng-dev@lists.lttng.org
Subject: tracepoint_enabled returns true for disabled provider, event
Date: Sat, 7 Sep 2019 14:42:22 +0200 [thread overview]
Message-ID: <CACU0Kcsfzct94bxY06DoQ4x=H+fuKN5JGi6og94YYptOCmz5FQ__19645.2761463419$1568037033$gmane$org@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1136 bytes --]
Hi
I troubleshooting a huge application where i experience the problem that
even if tracepoint_enabled is used i get the huge overhead of formatting
the output even if then the message is not sent to the lttng buffers.
The tracepoint loglevel is set to TRACE_INFO using the TRACEPOINT_LOGLEVEL
macro. I managed to rebuild the application setting the level to
TRACE_DEBUG instead and then i could print continuously that the
tracepoint_enabled returned false. If i flip it back to TRACE_INFO
tracepoint_enabled always returns true, hence do lots of string building
but then no trace is actually sent off to lttng (which is correct since i
haven't enabled the tracepoint). Even if i explicitly do disable event on
the provider and tracepoint the TRACE_INFO tracepoints returns true in
tracepoint_enabled
Is this by design that tracepoint_enabled always returns true for
TRACE_INFO and lower values or is this configurable in any way?
I am using this inside a docker image running Wind River Linux
bash-4.3# lttng --version
lttng (LTTng Trace Control) 2.10.6 - KeKriek - v2.10.6-11-g8fcbf96
bash-4.3#
Any advice are welcome!
//Anders
[-- Attachment #1.2: Type: text/html, Size: 1348 bytes --]
[-- Attachment #2: Type: text/plain, Size: 156 bytes --]
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
next reply other threads:[~2019-09-07 12:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-07 12:42 Anders Johansson [this message]
[not found] <CACU0Kcsfzct94bxY06DoQ4x=H+fuKN5JGi6og94YYptOCmz5FQ@mail.gmail.com>
2019-09-16 20:48 ` tracepoint_enabled returns true for disabled provider, event Jonathan Rajotte-Julien
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='CACU0Kcsfzct94bxY06DoQ4x=H+fuKN5JGi6og94YYptOCmz5FQ__19645.2761463419$1568037033$gmane$org@mail.gmail.com' \
--to=epkboan@gmail.com \
--cc=lttng-dev@lists.lttng.org \
/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;
as well as URLs for NNTP newsgroup(s).