engines/http: work-around crash in certain libssl versions
[fio.git] / blktrace.h
1 #ifndef FIO_BLKTRACE_H
2 #define FIO_BLKTRACE_H
3
4
5 #ifdef FIO_HAVE_BLKTRACE
6
7 #include <asm/types.h>
8
9 #include "blktrace_api.h"
10
11 struct blktrace_cursor {
12         struct fifo             *fifo;  // fifo queue for reading
13         int                     fd;     // 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
20 };
21
22 bool is_blktrace(const char *, int *);
23 bool load_blktrace(struct thread_data *, const char *, int);
24 int merge_blktrace_iologs(struct thread_data *td);
25
26 #else
27
28 static inline bool is_blktrace(const char *fname, int *need_swap)
29 {
30         return false;
31 }
32
33 static inline bool load_blktrace(struct thread_data *td, const char *fname,
34                                  int need_swap)
35 {
36         return false;
37 }
38
39 static inline int merge_blktrace_iologs(struct thread_data *td)
40 {
41         return false;
42 }
43
44 #endif
45 #endif