rotate timer ready, need UI/API
[deliverable/lttng-tools.git] / src / bin / lttng-sessiond / sessiond-timer.h
index 1c74f7cc1e67707fb60e4a4547cdb57794576c30..ac020cdbb3353880b3ff9a5b1a7825927e827763 100644 (file)
@@ -25,6 +25,7 @@
 #define LTTNG_SESSIOND_SIG_TEARDOWN            SIGRTMIN + 10
 #define LTTNG_SESSIOND_SIG_EXIT                        SIGRTMIN + 11
 #define LTTNG_SESSIOND_SIG_ROTATE_PENDING      SIGRTMIN + 12
+#define LTTNG_SESSIOND_SIG_ROTATE_TIMER                SIGRTMIN + 13
 
 #define CLOCKID CLOCK_MONOTONIC
 
@@ -45,6 +46,11 @@ struct timer_thread_parameters {
        int rotate_timer_pipe;
 };
 
+struct sessiond_rotation_timer {
+       uint64_t session_id;
+       unsigned int signal;
+} LTTNG_PACKED;
+
 void *sessiond_timer_thread(void *data);
 int sessiond_timer_signal_init(void);
 
@@ -52,4 +58,9 @@ int sessiond_timer_rotate_pending_start(struct ltt_session *session, unsigned in
                interval_us);
 void sessiond_timer_rotate_pending_stop(struct ltt_session *session);
 
+int sessiond_rotate_timer_start(struct ltt_session *session,
+               unsigned int interval_us);
+
+void sessiond_rotate_timer_stop(struct ltt_session *session);
+
 #endif /* SESSIOND_TIMER_H */
This page took 0.025735 seconds and 5 git commands to generate.