From: David Goulet Date: Wed, 23 Nov 2011 17:49:23 +0000 (-0500) Subject: Add debug statement to the teardown session X-Git-Tag: v2.0-pre15~83 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=8f7a84dd224c529cb7a366f6b191d57bf980d339;p=lttng-tools.git Add debug statement to the teardown session Signed-off-by: David Goulet --- diff --git a/lttng-sessiond/main.c b/lttng-sessiond/main.c index bc745487b..dc71e0eae 100644 --- a/lttng-sessiond/main.c +++ b/lttng-sessiond/main.c @@ -335,8 +335,11 @@ error: */ static void teardown_kernel_session(struct ltt_session *session) { - if (!session->kernel_session) + if (!session->kernel_session) { + DBG3("No kernel session when tearingdown session"); return; + } + DBG("Tearing down kernel session"); /* @@ -358,13 +361,18 @@ static void teardown_ust_session(struct ltt_session *session) { int ret; - if (!session->ust_session) + if (!session->ust_session) { + DBG3("No UST session when tearingdown session"); return; + } + DBG("Tearing down UST session(s)"); + ret = ust_app_destroy_trace_all(session->ust_session); if (ret) { ERR("Error in ust_app_destroy_trace_all"); } + trace_ust_destroy_session(session->ust_session); }