From d5cd1f3415b6d3cafa347b8e0068de2245014f25 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 14 Nov 2011 16:43:09 -0500 Subject: [PATCH] Add important DEBUG statement Signed-off-by: David Goulet --- lttng-sessiond/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lttng-sessiond/main.c b/lttng-sessiond/main.c index fa196e7b0..d52dcb945 100644 --- a/lttng-sessiond/main.c +++ b/lttng-sessiond/main.c @@ -2085,6 +2085,7 @@ static int cmd_enable_channel(struct ltt_session *session, ret = LTTCOMM_UST_CHAN_FAIL; goto error; } + rcu_read_lock(); hashtable_add_unique(usess->domain_global.channels, &uchan->node); rcu_read_unlock(); @@ -2353,6 +2354,7 @@ static int cmd_enable_event(struct ltt_session *session, int domain, ret = LTTCOMM_FATAL; goto error; } + } ret = ust_app_add_event_all(usess, uchan, uevent); @@ -2361,9 +2363,13 @@ static int cmd_enable_event(struct ltt_session *session, int domain, goto error; } + /* Add ltt ust event to channel */ rcu_read_lock(); hashtable_add_unique(uchan->events, &uevent->node); rcu_read_unlock(); + + DBG3("UST ltt event %s added to channel %s", uevent->attr.name, + uchan->name); break; } case LTTNG_DOMAIN_UST_EXEC_NAME: -- 2.34.1