Fix wrong goto
[lttng-tools.git] / ltt-sessiond / session.h
index 72183ef4b66d0396505ed6373aeb29b0999b5a57..11f9b9ace8986b0366e046d5787a7803fa38180c 100644 (file)
 #ifndef _LTT_SESSION_H
 #define _LTT_SESSION_H
 
+#include <lttng/lttng.h>
+#include <uuid/uuid.h>
+
+/*
+ * FIXME: create a cmd_context structure to pass this kind of
+ * information around as parameter. Will facilitate multithreaded design
+ * later.
+ */
+extern struct ltt_session *current_session;
+
 /* Global session list */
 struct ltt_session_list {
        struct cds_list_head head;
@@ -32,9 +42,11 @@ struct ltt_session {
        struct cds_list_head list;
        uuid_t uuid;
        struct cds_list_head ust_traces;
-       struct cds_list_head lttng_traces;
+       struct cds_list_head kernel_traces;
+       unsigned int ust_trace_count;
+       unsigned int kern_trace_count;
        pid_t ust_consumer;
-       pid_t lttng_consumer;
+       pid_t kernel_consumer;
 };
 
 /* Prototypes */
This page took 0.023187 seconds and 4 git commands to generate.