blktrace: add option to iterate over a trace multiple times
[fio.git] / blktrace.h
index cebd54d6a58969b463f03219d8129d2fc88db6fc..72d74cf8ad30e72b00ca5c893bc7245ed8d9b835 100644 (file)
@@ -4,14 +4,19 @@
 
 #ifdef FIO_HAVE_BLKTRACE
 
+#include <asm/types.h>
+
 #include "blktrace_api.h"
 
 struct blktrace_cursor {
        struct fifo             *fifo;  // fifo queue for reading
        int                     fd;     // blktrace file
+       __u64                   length; // length of trace
        struct blk_io_trace     t;      // current io trace
        int                     swap;   // bitwise reverse required
        int                     scalar; // scale percentage
+       int                     iter;   // current iteration
+       int                     nr_iter; // number of iterations to run
 };
 
 bool is_blktrace(const char *, int *);