projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
engines/libblkio: Add option libblkio_force_enable_completion_eventfd
[fio.git]
/
blktrace.h
diff --git
a/blktrace.h
b/blktrace.h
index 1b2bb76bbcd37a3ec24e59475390c999ba0666a7..c53b717ba4e2d3069f170d1552027817cc734106 100644
(file)
--- a/
blktrace.h
+++ b/
blktrace.h
@@
-4,17
+4,25
@@
#ifdef FIO_HAVE_BLKTRACE
#ifdef FIO_HAVE_BLKTRACE
+#include <asm/types.h>
+
#include "blktrace_api.h"
struct blktrace_cursor {
struct fifo *fifo; // fifo queue for reading
#include "blktrace_api.h"
struct blktrace_cursor {
struct fifo *fifo; // fifo queue for reading
- int fd; // blktrace file
+ FILE *f; // blktrace file
+ __u64 length; // length of trace
struct blk_io_trace t; // current io trace
int swap; // bitwise reverse required
struct blk_io_trace t; // current io trace
int swap; // bitwise reverse required
+ int scalar; // scale percentage
+ int iter; // current iteration
+ int nr_iter; // number of iterations to run
};
bool is_blktrace(const char *, int *);
};
bool is_blktrace(const char *, int *);
-bool load_blktrace(struct thread_data *, const char *, int);
+bool init_blktrace_read(struct thread_data *, const char *, int);
+bool read_blktrace(struct thread_data* td);
+
int merge_blktrace_iologs(struct thread_data *td);
#else
int merge_blktrace_iologs(struct thread_data *td);
#else
@@
-24,11
+32,22
@@
static inline bool is_blktrace(const char *fname, int *need_swap)
return false;
}
return false;
}
-static inline bool
load_blktrace
(struct thread_data *td, const char *fname,
+static inline bool
init_blktrace_read
(struct thread_data *td, const char *fname,
int need_swap)
{
return false;
}
int need_swap)
{
return false;
}
+static inline bool read_blktrace(struct thread_data* td)
+{
+ return false;
+}
+
+
+static inline int merge_blktrace_iologs(struct thread_data *td)
+{
+ return false;
+}
+
#endif
#endif
#endif
#endif