X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsession.h;fp=src%2Fbin%2Flttng-sessiond%2Fsession.h;h=f0e7bdb0ec0b5b924e0caff1232f6fc17b310be6;hb=a5a2d0c25460639304b9bd3991d874774553a39c;hp=0fd2fb16a4dc416c73784611300085651ce857fc;hpb=b20544380e8a0a99ac092e46192b437f62008c4a;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/session.h b/src/bin/lttng-sessiond/session.h index 0fd2fb16a..f0e7bdb0e 100644 --- a/src/bin/lttng-sessiond/session.h +++ b/src/bin/lttng-sessiond/session.h @@ -68,7 +68,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; @@ -86,8 +85,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;