X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Flttng%2Frotation.h;h=00d68d7e5c5015a71982f1fe3d5690eca205f135;hb=90936dcf0968343f20b2f6fd365b9c015cdb9717;hp=9b797ac11c2783256c420f1cd70b22da08c835bd;hpb=259c267446a63c501298f39a5d2397314b11f729;p=lttng-tools.git diff --git a/include/lttng/rotation.h b/include/lttng/rotation.h index 9b797ac11..00d68d7e5 100644 --- a/include/lttng/rotation.h +++ b/include/lttng/rotation.h @@ -134,6 +134,12 @@ extern enum lttng_rotation_status lttng_rotation_schedule_attr_set_session_name( extern enum lttng_rotation_status lttng_rotation_schedule_attr_set_timer_period( struct lttng_rotation_schedule_attr *attr, uint64_t timer); +/* + * Set the size to rotate the session (bytes, -1ULL to disable). + */ +void lttng_rotation_schedule_attr_set_size( + struct lttng_rotation_schedule_attr *attr, uint64_t size); + /* * lttng rotate session handle functions. */ @@ -188,6 +194,26 @@ extern int lttng_rotate_session(struct lttng_rotation_immediate_attr *attr, extern int lttng_rotation_set_schedule( struct lttng_rotation_schedule_attr *attr); +/* + * Ask the sessiond for the value of the rotate timer (in micro-seconds) of the + * session. + * + * On success, return 0 and set the value or rotate_timer, on error return a + * negative value. + */ +extern int lttng_rotation_schedule_get_timer_period(const char *session_name, + uint64_t *rotate_timer); + +/* + * Ask the sessiond for the value of the rotate size (in micro-seconds) of the + * session. + * + * On success, return 0 and set the value or rotate_size, on error return + * a negative value. + */ +extern int lttng_rotation_schedule_get_size(const char *session_name, + uint64_t *rotate_size); + #ifdef __cplusplus } #endif