5 #ifdef FIO_HAVE_BLKTRACE
7 #include "blktrace_api.h"
9 struct blktrace_cursor {
10 struct fifo *fifo; // fifo queue for reading
11 int fd; // blktrace file
12 struct blk_io_trace t; // current io trace
13 int swap; // bitwise reverse required
16 bool is_blktrace(const char *, int *);
17 bool load_blktrace(struct thread_data *, const char *, int);
18 int merge_blktrace_iologs(struct thread_data *td);
22 static inline bool is_blktrace(const char *fname, int *need_swap)
27 static inline bool load_blktrace(struct thread_data *td, const char *fname,