Size-based rotation
[lttng-tools.git] / include / lttng / rotate-internal.h
index 00a348ff793673842145c9d0c02c49cd271e698f..f5e4dc950b4875ef5e239e2ec497042d34643c59 100644 (file)
@@ -48,6 +48,8 @@ struct lttng_rotation_schedule_attr {
        char session_name[LTTNG_NAME_MAX];
        /* > 0 if a timer is set. */
        uint64_t timer_us;
+       /* > 0 if the session should rotate when it has written that many bytes. */
+       uint64_t size;
 } LTTNG_PACKED;
 
 /*
@@ -95,4 +97,14 @@ struct lttng_session_get_current_output_return {
        char path[LTTNG_PATH_MAX];
 } LTTNG_PACKED;
 
+/* For the LTTNG_ROTATION_SCHEDULE_GET_TIMER_PERIOD command. */
+struct lttng_rotation_schedule_get_timer_period {
+       uint64_t rotate_timer;
+} LTTNG_PACKED;
+
+/* For the LTTNG_ROTATION_SCHEDULE_GET_SIZE command. */
+struct lttng_rotation_schedule_get_size {
+       uint64_t rotate_size;
+} LTTNG_PACKED;
+
 #endif /* LTTNG_ROTATE_INTERNAL_ABI_H */
This page took 0.023179 seconds and 4 git commands to generate.