X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=blktrace.h;h=a0e82faa05eed81bb3e8819a200208089a6009d7;hb=6463db6c1d3a2a961008e87a86d464b596886f1a;hp=096993eda81fbc68ad49dfb704c21c0e35de2653;hpb=b153f94a22d86ab342b7cc7a0f1fa5051311f2b4;p=fio.git diff --git a/blktrace.h b/blktrace.h index 096993ed..a0e82faa 100644 --- a/blktrace.h +++ b/blktrace.h @@ -1,10 +1,27 @@ #ifndef FIO_BLKTRACE_H #define FIO_BLKTRACE_H + #ifdef FIO_HAVE_BLKTRACE +#include + +#include "blktrace_api.h" + +struct blktrace_cursor { + struct fifo *fifo; // fifo queue for reading + int fd; // blktrace file + __u64 length; // length of trace + 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 load_blktrace(struct thread_data *, const char *, int); +int merge_blktrace_iologs(struct thread_data *td); #else @@ -19,5 +36,10 @@ static inline bool load_blktrace(struct thread_data *td, const char *fname, return false; } +static inline int merge_blktrace_iologs(struct thread_data *td) +{ + return false; +} + #endif #endif