X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fsession.h;h=8029dcd8e96f0865083094d2b1c84a0ccb4ae6aa;hb=d1bc11c3e8bbd032c6638a2def5994703e7c9778;hp=9f668b5fbc0ed4fc522079a2a6e621ab12e55d54;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/session.h b/src/bin/lttng-relayd/session.h index 9f668b5fb..8029dcd8e 100644 --- a/src/bin/lttng-relayd/session.h +++ b/src/bin/lttng-relayd/session.h @@ -42,6 +42,11 @@ struct relay_session { * the other cases. */ lttng_uuid sessiond_uuid; + /* + * Contains the creation time on the session daemon's end for 2.11+ + * peers. Otherwise, this contains the session creation time on the + * relay daemon's end. + */ LTTNG_OPTIONAL(time_t) creation_time; /* Must _not_ be empty for 2.4+ peers. */ char session_name[LTTNG_NAME_MAX]; @@ -68,7 +73,7 @@ struct relay_session { struct urcu_ref ref; - pthread_mutex_t lock; + mutable pthread_mutex_t lock; /* major/minor version used for this session. */ uint32_t major; @@ -151,6 +156,8 @@ void session_put(struct relay_session *session); int session_close(struct relay_session *session); int session_abort(struct relay_session *session); +bool session_has_ongoing_rotation(const struct relay_session *session); + void print_sessions(void); #endif /* _SESSION_H */