configure: enable -Wimplicit-fallthrough if we have it
[fio.git] / blktrace.h
CommitLineData
a3e59412
TK
1#ifndef FIO_BLKTRACE_H
2#define FIO_BLKTRACE_H
3
b9921d1a 4
a3e59412
TK
5#ifdef FIO_HAVE_BLKTRACE
6
55bfd8c8
DZ
7#include <asm/types.h>
8
b9921d1a
DZ
9#include "blktrace_api.h"
10
11struct blktrace_cursor {
12 struct fifo *fifo; // fifo queue for reading
13 int fd; // blktrace file
55bfd8c8 14 __u64 length; // length of trace
b9921d1a
DZ
15 struct blk_io_trace t; // current io trace
16 int swap; // bitwise reverse required
87a48ada 17 int scalar; // scale percentage
55bfd8c8
DZ
18 int iter; // current iteration
19 int nr_iter; // number of iterations to run
b9921d1a
DZ
20};
21
b153f94a
JA
22bool is_blktrace(const char *, int *);
23bool load_blktrace(struct thread_data *, const char *, int);
b9921d1a 24int merge_blktrace_iologs(struct thread_data *td);
a3e59412
TK
25
26#else
27
b153f94a 28static inline bool is_blktrace(const char *fname, int *need_swap)
a3e59412 29{
b153f94a 30 return false;
a3e59412
TK
31}
32
b153f94a
JA
33static inline bool load_blktrace(struct thread_data *td, const char *fname,
34 int need_swap)
a3e59412 35{
b153f94a 36 return false;
a3e59412
TK
37}
38
bd6afe89
JA
39static inline int merge_blktrace_iologs(struct thread_data *td)
40{
41 return false;
42}
43
a3e59412
TK
44#endif
45#endif