Save, restore and list the rotation parameters
[lttng-tools.git] / include / lttng / rotate-internal.h
index 265148376fa744e493edcd0bd1a57c235957a089..29ea8c8359f7e6513b81a7583927f001bcac8efa 100644 (file)
@@ -38,6 +38,18 @@ struct lttng_rotation_immediate_attr {
        uint64_t rotate_id;
 };
 
+/*
+ * Object used as input parameter to the lttng_rotate_schedule API for
+ * automatic rotations.
+ * This is opaque to the public library.
+ */
+struct lttng_rotation_schedule_attr {
+       /* Session name to rotate. */
+       char session_name[LTTNG_NAME_MAX];
+       /* > 0 if a timer is set. */
+       uint64_t timer_us;
+} LTTNG_PACKED;
+
 /*
  * Object returned by the rotate session API.
  * This is opaque to the public library.
@@ -83,4 +95,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.024792 seconds and 5 git commands to generate.