[lttng-dev] [PATCH] Allow suppressing of base-address-state tracing
Paul Woegerer
paul_woegerer at mentor.com
Mon Nov 25 07:05:33 EST 2013
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
More information about the lttng-dev
mailing list