X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-sessiond%2Fsession.h;h=11f9b9ace8986b0366e046d5787a7803fa38180c;hb=5e16da05;hp=72183ef4b66d0396505ed6373aeb29b0999b5a57;hpb=91d76f53238ce994e91e1213e46c138b1b5529c6;p=lttng-tools.git diff --git a/ltt-sessiond/session.h b/ltt-sessiond/session.h index 72183ef4b..11f9b9ace 100644 --- a/ltt-sessiond/session.h +++ b/ltt-sessiond/session.h @@ -19,6 +19,16 @@ #ifndef _LTT_SESSION_H #define _LTT_SESSION_H +#include +#include + +/* + * 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 */