X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=iolog.h;h=297daf588c281ab34e2e67c674411b29f32d791c;hb=8dc1a870973e20011282059ba124838cdd120dd3;hp=6f027ca8d4ca1facc58618a0ad65545df6f12edd;hpb=155f2f027b34321f6f5abe79c09ece8ecca25046;p=fio.git diff --git a/iolog.h b/iolog.h index 6f027ca8..297daf58 100644 --- a/iolog.h +++ b/iolog.h @@ -184,8 +184,9 @@ extern void trim_io_piece(struct thread_data *, const struct io_u *); extern void queue_io_piece(struct thread_data *, struct io_piece *); extern void prune_io_piece_log(struct thread_data *); extern void write_iolog_close(struct thread_data *); -extern int iolog_compress_init(struct thread_data *); +extern int iolog_compress_init(struct thread_data *, struct sk_out *); extern void iolog_compress_exit(struct thread_data *); +extern size_t log_chunk_sizes(struct io_log *); #ifdef CONFIG_ZLIB extern int iolog_file_inflate(const char *); @@ -207,6 +208,7 @@ struct log_params { extern void finalize_logs(struct thread_data *td); extern void setup_log(struct io_log **, struct log_params *, const char *); extern void flush_log(struct io_log *, int); +extern void flush_samples(FILE *, void *, uint64_t); extern void free_log(struct io_log *); extern void fio_writeout_logs(struct thread_data *); extern int iolog_flush(struct io_log *, int); @@ -217,4 +219,11 @@ static inline void init_ipo(struct io_piece *ipo) INIT_FLIST_HEAD(&ipo->trim_list); } +struct iolog_compress { + struct flist_head list; + void *buf; + size_t len; + unsigned int seq; +}; + #endif