Test malloc result when allocation size is tunable
[fio.git] / thread_options.h
index 1b4590f751f0c72a7345ee730a52ac6bde360fa3..2b2df3384fb12f5c24c311f32bc259515919d439 100644 (file)
@@ -68,7 +68,7 @@ struct thread_options {
        unsigned int unique_filename;
 
        unsigned long long size;
-       unsigned long long io_limit;
+       unsigned long long io_size;
        unsigned int size_percent;
        unsigned int fill_device;
        unsigned int file_append;
@@ -170,6 +170,10 @@ struct thread_options {
        unsigned long long start_delay_high;
        unsigned long long timeout;
        unsigned long long ramp_time;
+       unsigned int ss_state;
+       fio_fp64_t ss_limit;
+       unsigned long long ss_dur;
+       unsigned long long ss_ramp_time;
        unsigned int overwrite;
        unsigned int bw_avg_time;
        unsigned int iops_avg_time;
@@ -202,6 +206,7 @@ struct thread_options {
        unsigned int ioprio_class;
        unsigned int file_service_type;
        unsigned int group_reporting;
+       unsigned int stats;
        unsigned int fadvise_hint;
        unsigned int fadvise_stream;
        enum fio_fallocate_mode fallocate_mode;
@@ -233,6 +238,12 @@ struct thread_options {
 
        char *read_iolog_file;
        char *write_iolog_file;
+
+       unsigned int write_bw_log;
+       unsigned int write_lat_log;
+       unsigned int write_iops_log;
+       unsigned int write_hist_log;
+
        char *bw_log_file;
        char *lat_log_file;
        char *iops_log_file;
@@ -245,8 +256,8 @@ struct thread_options {
        char *exec_prerun;
        char *exec_postrun;
 
-       unsigned int rate[DDIR_RWDIR_CNT];
-       unsigned int ratemin[DDIR_RWDIR_CNT];
+       uint64_t rate[DDIR_RWDIR_CNT];
+       uint64_t ratemin[DDIR_RWDIR_CNT];
        unsigned int ratecycle;
        unsigned int io_submit_mode;
        unsigned int rate_iops[DDIR_RWDIR_CNT];
@@ -328,7 +339,7 @@ struct thread_options_pack {
        uint32_t __proper_alignment_for_64b;
 
        uint64_t size;
-       uint64_t io_limit;
+       uint64_t io_size;
        uint32_t size_percent;
        uint32_t fill_device;
        uint32_t file_append;
@@ -428,6 +439,10 @@ struct thread_options_pack {
        uint64_t start_delay_high;
        uint64_t timeout;
        uint64_t ramp_time;
+       uint64_t ss_dur;
+       uint64_t ss_ramp_time;
+       uint32_t ss_state;
+       fio_fp64_t ss_limit;
        uint32_t overwrite;
        uint32_t bw_avg_time;
        uint32_t iops_avg_time;
@@ -461,6 +476,7 @@ struct thread_options_pack {
        uint32_t ioprio_class;
        uint32_t file_service_type;
        uint32_t group_reporting;
+       uint32_t stats;
        uint32_t fadvise_hint;
        uint32_t fadvise_stream;
        uint32_t fallocate_mode;
@@ -492,6 +508,12 @@ struct thread_options_pack {
 
        uint8_t read_iolog_file[FIO_TOP_STR_MAX];
        uint8_t write_iolog_file[FIO_TOP_STR_MAX];
+
+       uint32_t write_bw_log;
+       uint32_t write_lat_log;
+       uint32_t write_iops_log;
+       uint32_t write_hist_log;
+
        uint8_t bw_log_file[FIO_TOP_STR_MAX];
        uint8_t lat_log_file[FIO_TOP_STR_MAX];
        uint8_t iops_log_file[FIO_TOP_STR_MAX];
@@ -504,8 +526,8 @@ struct thread_options_pack {
        uint8_t exec_prerun[FIO_TOP_STR_MAX];
        uint8_t exec_postrun[FIO_TOP_STR_MAX];
 
-       uint32_t rate[DDIR_RWDIR_CNT];
-       uint32_t ratemin[DDIR_RWDIR_CNT];
+       uint64_t rate[DDIR_RWDIR_CNT];
+       uint64_t ratemin[DDIR_RWDIR_CNT];
        uint32_t ratecycle;
        uint32_t io_submit_mode;
        uint32_t rate_iops[DDIR_RWDIR_CNT];