X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Findex.h;fp=src%2Fbin%2Flttng-relayd%2Findex.h;h=08388c001872a221cbdd6f42960513619ca42759;hp=dda5b910b5b8c8df0b88dcd1bda2fd50f9be8c66;hb=d3ecc5503007bc81faa8049fac945f163b6356f3;hpb=62c43103c60bd704cd8ed7acaaa22465802f5673 diff --git a/src/bin/lttng-relayd/index.h b/src/bin/lttng-relayd/index.h index dda5b910b..08388c001 100644 --- a/src/bin/lttng-relayd/index.h +++ b/src/bin/lttng-relayd/index.h @@ -46,6 +46,8 @@ struct relay_index { /* Index packet data. This is the data that is written on disk. */ struct ctf_packet_index index_data; + /* Data + padding size of this packet, filled by the data thread. */ + uint64_t total_size; bool has_index_data; bool flushed; @@ -73,5 +75,6 @@ int relay_index_try_flush(struct relay_index *index); void relay_index_close_all(struct relay_stream *stream); void relay_index_close_partial_fd(struct relay_stream *stream); uint64_t relay_index_find_last(struct relay_stream *stream); +int relay_index_switch_all_files(struct relay_stream *stream); #endif /* _RELAY_INDEX_H */