Create an initial trace chunk on first start of an ltt_session
[lttng-tools.git] / src / bin / lttng-sessiond / session.h
index b008c967ec21b610651c5c4071842b236c2d2360..19dabb727179bb23a64e2b5cf3a1bba8a5f4ffc3 100644 (file)
@@ -25,6 +25,7 @@
 #include <common/hashtable/hashtable.h>
 #include <lttng/rotation.h>
 #include <lttng/location.h>
+#include <lttng/lttng-error.h>
 
 #include "snapshot.h"
 #include "trace-kernel.h"
@@ -225,6 +226,8 @@ struct ltt_session {
         */
        struct lttng_condition *rotate_condition;
        struct lttng_trigger *rotate_trigger;
+       LTTNG_OPTIONAL(uint64_t) last_trace_chunk_id;
+       struct lttng_trace_chunk *current_trace_chunk;
 };
 
 /* Prototypes */
@@ -262,4 +265,10 @@ int session_access_ok(struct ltt_session *session, uid_t uid, gid_t gid);
 int session_reset_rotation_state(struct ltt_session *session,
                enum lttng_rotation_state result);
 
+enum lttng_error_code session_switch_trace_chunk(struct ltt_session *session,
+               const char *session_base_path_override,
+               const char *chunk_name_override);
+int session_set_trace_chunk(struct ltt_session *session,
+               struct lttng_trace_chunk *current_trace_chunk);
+
 #endif /* _LTT_SESSION_H */
This page took 0.025354 seconds and 5 git commands to generate.