Comments and cleanup review Mathieu & David
[lttng-tools.git] / ltt-sessiond / session.h
index 5bfe16ac04122a0e9c079ef02512a1cea54bc1c4..11f9b9ace8986b0366e046d5787a7803fa38180c 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
  *
  * This program is free software; you can redistribute it and/or
 #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.025587 seconds and 4 git commands to generate.