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
14 int scalar; // scale percentage
17 bool is_blktrace(const char *, int *);
18 bool load_blktrace(struct thread_data *, const char *, int);
19 int merge_blktrace_iologs(struct thread_data *td);
23 static inline bool is_blktrace(const char *fname, int *need_swap)
28 static inline bool load_blktrace(struct thread_data *td, const char *fname,