X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=blktrace.h;h=1b2bb76bbcd37a3ec24e59475390c999ba0666a7;hp=096993eda81fbc68ad49dfb704c21c0e35de2653;hb=b9921d1a56d9a6576dcf6c276b380a2a29a112be;hpb=532eda7ed384fff8ebfde90fc50f94618d6a5fb6 diff --git a/blktrace.h b/blktrace.h index 096993ed..1b2bb76b 100644 --- a/blktrace.h +++ b/blktrace.h @@ -1,10 +1,21 @@ #ifndef FIO_BLKTRACE_H #define FIO_BLKTRACE_H + #ifdef FIO_HAVE_BLKTRACE +#include "blktrace_api.h" + +struct blktrace_cursor { + struct fifo *fifo; // fifo queue for reading + int fd; // blktrace file + struct blk_io_trace t; // current io trace + int swap; // bitwise reverse required +}; + bool is_blktrace(const char *, int *); bool load_blktrace(struct thread_data *, const char *, int); +int merge_blktrace_iologs(struct thread_data *td); #else