X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Frotate.h;h=ea2383f2c9415cc14286587bc74804da5f8f1c89;hp=b2f006f3e2fc96bbf0260480e409772dc4e18cc5;hb=d88744a44aa5f2ca90ab87946692b9eed3120641;hpb=db66e57489e5014289dc1d831e1eac90ac4fc0da diff --git a/src/bin/lttng-sessiond/rotate.h b/src/bin/lttng-sessiond/rotate.h index b2f006f3e..ea2383f2c 100644 --- a/src/bin/lttng-sessiond/rotate.h +++ b/src/bin/lttng-sessiond/rotate.h @@ -48,4 +48,16 @@ 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); +int relay_rotate_pending(struct ltt_session *session, uint64_t chunk_id); + +/* + * 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 */