X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsession.h;h=54026aaad22c6697498b5340555096f86c1e23a5;hb=d0c66a34ba4c0e20b3af0f81761099b6b6a9adc1;hp=e052d6d337e10ee69490df9df9181962bd01b248;hpb=9b1ddda7fd61aa88b29317cd30e4e2769534c21b;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/session.h b/src/bin/lttng-sessiond/session.h index e052d6d33..54026aaad 100644 --- a/src/bin/lttng-sessiond/session.h +++ b/src/bin/lttng-sessiond/session.h @@ -70,7 +70,6 @@ struct ltt_session { */ pthread_mutex_t lock; struct cds_list_head list; - int enabled; /* enabled/started flag */ uint64_t id; /* session unique identifier */ /* UID/GID of the user owning the session */ uid_t uid; @@ -88,8 +87,13 @@ struct ltt_session { */ struct consumer_output *consumer; - /* Did a start command occured before the kern/ust session creation? */ - unsigned int started; + /* Did at least ONE start command has been triggered?. */ + unsigned int has_been_started:1; + /* + * Is the session active? Start trace command sets this to 1 and the stop + * command reset it to 0. + */ + unsigned int active:1; /* Snapshot representation in a session. */ struct snapshot snapshot;