Add important DEBUG statement
authorDavid Goulet <david.goulet@polymtl.ca>
Mon, 14 Nov 2011 21:43:09 +0000 (16:43 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Mon, 14 Nov 2011 21:43:09 +0000 (16:43 -0500)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng-sessiond/main.c

index fa196e7b033bfe07f97ac994803afc384c6f274c..d52dcb945bfe3cfbbfbd69a29b8f78700ac794f8 100644 (file)
@@ -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:
This page took 0.03588 seconds and 4 git commands to generate.