X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer-stream.h;h=8bda682bd9bdd4620e4af359b5365c919f61d636;hp=c5fb09732d7a94f065480b01bedd4f683e0daf39;hb=d295668767ac8234e83984e1812d342d03293d88;hpb=fb9a95c4d6242bd8336b638c90a7d8f846125659 diff --git a/src/common/consumer/consumer-stream.h b/src/common/consumer/consumer-stream.h index c5fb09732..8bda682bd 100644 --- a/src/common/consumer/consumer-stream.h +++ b/src/common/consumer/consumer-stream.h @@ -77,4 +77,21 @@ int consumer_stream_write_index(struct lttng_consumer_stream *stream, int consumer_stream_sync_metadata(struct lttng_consumer_local_data *ctx, uint64_t session_id); +/* + * Create the output files of a local stream. + * + * This must be called with the channel's and the stream's lock held. + */ +int consumer_stream_create_output_files(struct lttng_consumer_stream *stream, + bool create_index); + +/* + * Rotate the output files of a local stream. This will change the + * active output files of both the binary and index in accordance + * with the stream's configuration (stream file count). + * + * This must be called with the channel's and the stream's lock held. + */ +int consumer_stream_rotate_output_files(struct lttng_consumer_stream *stream); + #endif /* LTTNG_CONSUMER_STREAM_H */