Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: paul_woegerer@mentor.com (Paul Woegerer)
Subject: [lttng-dev] [PATCH] Allow suppressing of base-address-state tracing
Date: Mon, 25 Nov 2013 13:05:33 +0100	[thread overview]
Message-ID: <1385381133-2774-1-git-send-email-paul_woegerer@mentor.com> (raw)
In-Reply-To: <1234203790.74752.1385280797186.JavaMail.zimbra@efficios.com>

If environment variable LTTNG_UST_WITHOUT_BADDR_STATEDUMP is set prior
to tracing base-address-state tracing on session-enable gets suppressed.

Signed-off-by: Paul Woegerer <paul_woegerer at mentor.com>
---
 liblttng-ust/lttng-ust-comm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c
index 77d8e3f..0b9c17d 100644
--- a/liblttng-ust/lttng-ust-comm.c
+++ b/liblttng-ust/lttng-ust-comm.c
@@ -260,6 +260,9 @@ int lttng_ust_baddr_statedump(struct lttng_session *session)
 	static
 	int (*lttng_ust_baddr_init_fn)(struct lttng_session *);
 
+	if (getenv("LTTNG_UST_WITHOUT_BADDR_STATEDUMP"))
+		return 0;
+
 	if (!lttng_ust_baddr_init_fn) {
 		void *baddr_handle = lttng_ust_baddr_handle();
 		if (baddr_handle) {
-- 
1.8.4




      parent reply	other threads:[~2013-11-25 12:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <553056004.74731.1385279999530.JavaMail.zimbra@efficios.com>
2013-11-24  8:13 ` [lttng-dev] deadlock in ust baddr 2.4.0-rc1 Mathieu Desnoyers
2013-11-25 11:30   ` Woegerer, Paul
2013-11-25 12:22     ` Woegerer, Paul
2013-11-25 13:44       ` Mathieu Desnoyers
2013-11-26 16:21         ` [lttng-dev] [PATCH] Make base-address-state tracing use LD_PRELOAD Paul Woegerer
2013-11-25 12:05   ` Paul Woegerer [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=1385381133-2774-1-git-send-email-paul_woegerer@mentor.com \
    --to=paul_woegerer@mentor.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