[PATCH] Add write_iolog support
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 37dabae1ec0af62c7718332706b0a9041336ae94..01c8b9baa566fab534ab042a637e62fc6b2d74f9 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -38,6 +38,7 @@ struct io_piece {
        struct list_head list;
        unsigned long long offset;
        unsigned int len;
        struct list_head list;
        unsigned long long offset;
        unsigned int len;
+       int ddir;
 };
 
 /*
 };
 
 /*
@@ -133,6 +134,7 @@ struct thread_data {
        unsigned int bw_avg_time;
        unsigned int create_serialize;
        unsigned int create_fsync;
        unsigned int bw_avg_time;
        unsigned int create_serialize;
        unsigned int create_fsync;
+       unsigned int end_fsync;
        unsigned int loops;
        unsigned long long file_size;
        unsigned long long real_file_size;
        unsigned int loops;
        unsigned long long file_size;
        unsigned long long real_file_size;
@@ -148,6 +150,12 @@ struct thread_data {
        unsigned int iodepth;
        os_cpu_mask_t cpumask;
        unsigned int jobnum;
        unsigned int iodepth;
        os_cpu_mask_t cpumask;
        unsigned int jobnum;
+       unsigned int read_iolog;
+       unsigned int write_iolog;
+
+       char iolog_file[256];
+       void *iolog_buf;
+       FILE *iolog_f;
 
        struct drand48_data bsrange_state;
        struct drand48_data verify_state;
 
        struct drand48_data bsrange_state;
        struct drand48_data verify_state;
@@ -218,6 +226,7 @@ struct thread_data {
        unsigned int override_sync;
 
        struct list_head io_hist_list;
        unsigned int override_sync;
 
        struct list_head io_hist_list;
+       struct list_head io_log_list;
 };
 
 #define td_verror(td, err)                                             \
 };
 
 #define td_verror(td, err)                                             \
@@ -273,6 +282,7 @@ enum {
        FIO_LIBAIO      = 1 << 2,
        FIO_POSIXAIO    = 1 << 3,
        FIO_SGIO        = 1 << 4,
        FIO_LIBAIO      = 1 << 2,
        FIO_POSIXAIO    = 1 << 3,
        FIO_SGIO        = 1 << 4,
+       FIO_SPLICEIO    = 1 << 5 | FIO_SYNCIO,
 };
 
 #define td_read(td)            ((td)->ddir == DDIR_READ)
 };
 
 #define td_read(td)            ((td)->ddir == DDIR_READ)