X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Frotation.h;h=186cbd6f6464f7bd761e8d593a2b390083f711db;hp=9b797ac11c2783256c420f1cd70b22da08c835bd;hb=329f344308786acb81d8939eb8e1ad37307696c2;hpb=e8360425c2fd0f8cfef1e678af5adfde7ae0a68e diff --git a/include/lttng/rotation.h b/include/lttng/rotation.h index 9b797ac11..186cbd6f6 100644 --- a/include/lttng/rotation.h +++ b/include/lttng/rotation.h @@ -188,6 +188,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