Fix: only create trace chunk if the output of a session supports it
[lttng-tools.git] / src / bin / lttng-sessiond / session.h
index 0750e1bcd83427cdd7cce518a2935d80759b0ab2..d524df1cc225caa60c0089227c5d77856ece0525 100644 (file)
@@ -224,7 +224,8 @@ int session_reset_rotation_state(struct ltt_session *session,
 
 /* Create a new trace chunk object from the session's configuration. */
 struct lttng_trace_chunk *session_create_new_trace_chunk(
-               struct ltt_session *session,
+               const struct ltt_session *session,
+               const struct consumer_output *consumer_output_override,
                const char *session_base_path_override,
                const char *chunk_name_override);
 
@@ -248,4 +249,6 @@ int session_close_trace_chunk(const struct ltt_session *session,
                struct lttng_trace_chunk *trace_chunk,
                const enum lttng_trace_chunk_command_type *close_command);
 
+bool session_output_supports_trace_chunks(const struct ltt_session *session);
+
 #endif /* _LTT_SESSION_H */
This page took 0.023847 seconds and 4 git commands to generate.