X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=iolog.h;h=62cbd1b02fe78cd8fed2fbe827ba779c446ece19;hb=ebd9b4dd690808f720712b9c1a1288ae0742f361;hp=7d66b7c42fb6e4c0d455165d0ebf56467a7b7e0b;hpb=2ea393df3256e44398558c264f035f8db7656b08;p=fio.git diff --git a/iolog.h b/iolog.h index 7d66b7c4..62cbd1b0 100644 --- a/iolog.h +++ b/iolog.h @@ -227,10 +227,8 @@ struct io_piece { unsigned long len; unsigned int flags; enum fio_ddir ddir; - union { - unsigned long delay; - unsigned int file_action; - }; + unsigned long delay; + unsigned int file_action; }; /* @@ -254,10 +252,13 @@ extern void trim_io_piece(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 *); +int64_t iolog_items_to_fetch(struct thread_data *td); 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 *); extern int init_io_u_buffers(struct thread_data *); +extern unsigned long long delay_since_ttime(const struct thread_data *, + unsigned long long); #ifdef CONFIG_ZLIB extern int iolog_file_inflate(const char *);