rotate timer working
[deliverable/lttng-tools.git] / include / lttng / rotate.h
index c340fb1c7c42d19f0729e32e443582a8cb83a699..b4bac221f36664fe138a475de2c249d2c2ac9408 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef LTTNG_ROTATE_H
 #define LTTNG_ROTATE_H
 
+#include <stdint.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -82,6 +84,18 @@ void lttng_rotate_session_attr_destroy(struct lttng_rotate_session_attr *attr);
 int lttng_rotate_session_attr_set_session_name(
        struct lttng_rotate_session_attr *attr, const char *session_name);
 
+/*
+ * Set the timer to periodically rotate the session.
+ */
+void lttng_rotate_session_attr_set_timer(
+               struct lttng_rotate_session_attr *attr, uint64_t timer);
+
+/*
+ * Set the size to rotate the session.
+ */
+void lttng_rotate_session_attr_set_size(
+               struct lttng_rotate_session_attr *attr, uint64_t size);
+
 /*
  * lttng rotate session handle functions.
  */
@@ -131,6 +145,11 @@ extern int lttng_rotate_session(struct lttng_rotate_session_attr *attr,
 extern int lttng_rotate_session_pending(
                struct lttng_rotate_session_handle *rotate_handle);
 
+/*
+ * Configure a session to rotate periodically or based on the size written.
+ */
+extern int lttng_rotate_setup(struct lttng_rotate_session_attr *attr);
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.027057 seconds and 5 git commands to generate.