X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=iolog.h;h=62cbd1b02fe78cd8fed2fbe827ba779c446ece19;hb=b158577d787beaa6d098be3f180f947f7ad80b22;hp=a39863095ad3f8264e055b40c448031c9507cc9c;hpb=a21ed2b50116e96f5f2d9c0dcf2e3506d7397ef8;p=fio.git diff --git a/iolog.h b/iolog.h index a3986309..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; }; /* @@ -259,6 +257,8 @@ 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 *);