Commit | Line | Data |
---|---|---|
a3e59412 TK |
1 | #ifndef FIO_BLKTRACE_H |
2 | #define FIO_BLKTRACE_H | |
3 | ||
b9921d1a | 4 | |
a3e59412 TK |
5 | #ifdef FIO_HAVE_BLKTRACE |
6 | ||
b9921d1a DZ |
7 | #include "blktrace_api.h" |
8 | ||
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 | |
87a48ada | 14 | int scalar; // scale percentage |
b9921d1a DZ |
15 | }; |
16 | ||
b153f94a JA |
17 | bool is_blktrace(const char *, int *); |
18 | bool load_blktrace(struct thread_data *, const char *, int); | |
b9921d1a | 19 | int merge_blktrace_iologs(struct thread_data *td); |
a3e59412 TK |
20 | |
21 | #else | |
22 | ||
b153f94a | 23 | static inline bool is_blktrace(const char *fname, int *need_swap) |
a3e59412 | 24 | { |
b153f94a | 25 | return false; |
a3e59412 TK |
26 | } |
27 | ||
b153f94a JA |
28 | static inline bool load_blktrace(struct thread_data *td, const char *fname, |
29 | int need_swap) | |
a3e59412 | 30 | { |
b153f94a | 31 | return false; |
a3e59412 TK |
32 | } |
33 | ||
34 | #endif | |
35 | #endif |