- unsigned char sequential;
- unsigned char odirect;
- unsigned char create_file;
- unsigned char invalidate_cache;
- unsigned char create_serialize;
- unsigned char create_fsync;
- unsigned char end_fsync;
- unsigned char sync_io;
- unsigned char verify;
- unsigned char use_thread;
- unsigned char unlink;
- unsigned char do_disk_util;
- unsigned char override_sync;
- unsigned char rand_repeatable;
-
- unsigned int bs;
- unsigned int min_bs;
- unsigned int max_bs;
+ /*
+ * bandwidth and latency stats
+ */
+ struct io_stat clat_stat[2]; /* completion latency */
+ struct io_stat slat_stat[2]; /* submission latency */
+ struct io_stat bw_stat[2]; /* bandwidth stats */
+
+ unsigned long long stat_io_bytes[2];
+ struct timeval stat_sample_time[2];
+
+ /*
+ * fio system usage accounting
+ */
+ struct rusage ru_start;
+ struct rusage ru_end;
+ unsigned long usr_time;
+ unsigned long sys_time;
+ unsigned long ctx;
+
+ /*
+ * IO depth and latency stats
+ */
+ unsigned int io_u_map[FIO_IO_U_MAP_NR];
+ unsigned int io_u_lat[FIO_IO_U_LAT_NR];
+ unsigned long total_io_u[2];
+ unsigned long short_io_u[2];
+
+ unsigned long long io_bytes[2];
+ unsigned long runtime[2];
+ unsigned long total_run_time;
+};
+
+struct thread_options {
+ int pad;
+ char *description;
+ char *name;
+ char *directory;
+ char *filename;
+ char *opendir;
+ char *ioengine;
+ enum td_ddir td_ddir;
+ unsigned int ddir_nr;
+ unsigned int iodepth;
+ unsigned int iodepth_low;
+ unsigned int iodepth_batch;
+
+ unsigned long long size;
+ unsigned long long file_size_low;
+ unsigned long long file_size_high;
+ unsigned long long start_offset;
+
+ unsigned int bs[2];
+ unsigned int min_bs[2];
+ unsigned int max_bs[2];
+
+ unsigned int nr_files;
+ unsigned int open_files;
+
+ unsigned int odirect;
+ unsigned int invalidate_cache;
+ unsigned int create_serialize;
+ unsigned int create_fsync;
+ unsigned int end_fsync;
+ unsigned int sync_io;
+ unsigned int verify;
+ unsigned int verifysort;
+ unsigned int use_thread;
+ unsigned int unlink;
+ unsigned int do_disk_util;
+ unsigned int override_sync;
+ unsigned int rand_repeatable;
+ unsigned int write_lat_log;
+ unsigned int write_bw_log;
+ unsigned int norandommap;
+ unsigned int bs_unaligned;
+ unsigned int fsync_on_close;
+
+ unsigned int hugepage_size;
+ unsigned int rw_min_bs;