Rotate command
[lttng-tools.git] / src / bin / lttng-sessiond / rotate.h
index b2f006f3e2fc96bbf0260480e409772dc4e18cc5..e2c0829bc5bf3b7384392c4cc33f175be3ea0c69 100644 (file)
@@ -48,4 +48,14 @@ unsigned long hash_channel_key(struct rotation_channel_key *key);
 /* session lock must be held by this function's caller. */
 int rename_complete_chunk(struct ltt_session *session, time_t ts);
 
 /* session lock must be held by this function's caller. */
 int rename_complete_chunk(struct ltt_session *session, time_t ts);
 
+/*
+ * When we start the rotation of a channel, we add its information in
+ * channel_pending_rotate_ht. This is called in the context of
+ * thread_manage_client when the client asks for a rotation, in the context
+ * of the sessiond_timer thread when periodic rotations are enabled and from
+ * the rotation_thread when size-based rotations are enabled.
+ */
+int rotate_add_channel_pending(uint64_t key, enum lttng_domain_type domain,
+               struct ltt_session *session);
+
 #endif /* ROTATE_H */
 #endif /* ROTATE_H */
This page took 0.025724 seconds and 5 git commands to generate.