X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsession.h;h=a60354d756ca45f0c5885dfdf53c7e473a0bc0b6;hp=3625ece6d4ce5196586c632025cc6567ab06557f;hb=b02f5986773579a5a331d3e108ba52ec9acde2e1;hpb=4a9b97598503b7f3932a388eb97590f77eb28006 diff --git a/src/bin/lttng-sessiond/session.h b/src/bin/lttng-sessiond/session.h index 3625ece6d..a60354d75 100644 --- a/src/bin/lttng-sessiond/session.h +++ b/src/bin/lttng-sessiond/session.h @@ -173,6 +173,12 @@ struct ltt_session { * chunk. */ bool rotated_after_last_stop; + /* + * Track whether the session was cleared after last stop. All subsequent + * clear (without prior start) will succeed, but will be effect-less. A + * subsequent rotate (without prior start) will return an error. + */ + bool cleared_after_last_stop; /* * Condition and trigger for size-based rotations. */