5 #ifdef FIO_HAVE_BLKTRACE
9 #include "blktrace_api.h"
11 struct blktrace_cursor {
12 struct fifo *fifo; // fifo queue for reading
13 FILE *f; // blktrace file
14 __u64 length; // length of trace
15 struct blk_io_trace t; // current io trace
16 int swap; // bitwise reverse required
17 int scalar; // scale percentage
18 int iter; // current iteration
19 int nr_iter; // number of iterations to run
22 bool is_blktrace(const char *, int *);
23 bool init_blktrace_read(struct thread_data *, const char *, int);
24 bool read_blktrace(struct thread_data* td);
26 int merge_blktrace_iologs(struct thread_data *td);
30 static inline bool is_blktrace(const char *fname, int *need_swap)
35 static inline bool init_blktrace_read(struct thread_data *td, const char *fname,
41 static inline bool read_blktrace(struct thread_data* td)
47 static inline int merge_blktrace_iologs(struct thread_data *td)