Install lttng/lttng-sessiond-comm.h into system
[lttng-tools.git] / ltt-sessiond / ust-ctl.c
index b5f2ce411d811ad56975b39c95aa7f02dbe9d08b..abee38817135392c93b55fb97a78d54936f0545a 100644 (file)
@@ -3,8 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
+ * as published by the Free Software Foundation; only version 2
+ * of the License.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 #include <string.h>
 #include <unistd.h>
 
-#include "libustctl.h"
-#include "liblttsessiondcomm.h"
+#include <lttng/lttng-sessiond-comm.h>
 #include "lttngerr.h"
 #include "ust-ctl.h"
 
+#ifdef DISABLED
 /*
  *  find_session_ust_trace_by_pid
  *
@@ -57,7 +57,7 @@ static struct ltt_ust_trace *find_session_ust_trace_by_pid(
  */
 int get_trace_count_per_session(struct ltt_session *session)
 {
-       return session->ust_trace_count + session->kern_session_count;
+       return session->ust_trace_count;
 }
 
 /*
@@ -206,4 +206,5 @@ int ust_stop_trace(struct command_ctx *cmd_ctx)
 error:
        return ret;
 }
+#endif
 
This page took 0.022888 seconds and 4 git commands to generate.