X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=thread_options.h;h=a78684cf985030f861da02a68f77de30d3f114fe;hp=1193abeb9f48065ccae7e0cabde6f30dae41de4a;hb=fb390e242cac8868e01cdc2046c63e04e3d53d70;hpb=51167799022df58d45a99bbd7aa9cf81a47c46c9 diff --git a/thread_options.h b/thread_options.h index 1193abeb..a78684cf 100644 --- a/thread_options.h +++ b/thread_options.h @@ -43,6 +43,7 @@ struct thread_options { char *filename; char *opendir; char *ioengine; + char *mmapfile; enum td_ddir td_ddir; unsigned int rw_seq; unsigned int kb_base; @@ -77,6 +78,7 @@ struct thread_options { unsigned int create_serialize; unsigned int create_fsync; unsigned int create_on_open; + unsigned int create_only; unsigned int end_fsync; unsigned int pre_read; unsigned int sync_io; @@ -98,9 +100,6 @@ struct thread_options { unsigned int override_sync; unsigned int rand_repeatable; unsigned int use_os_rand; - unsigned int write_lat_log; - unsigned int write_bw_log; - unsigned int write_iops_log; unsigned int log_avg_msec; unsigned int norandommap; unsigned int softrandommap; @@ -125,6 +124,7 @@ struct thread_options { unsigned long long zone_range; unsigned long long zone_size; unsigned long long zone_skip; + unsigned long long lockmem; enum fio_memtype mem_type; unsigned int mem_align; @@ -139,6 +139,8 @@ struct thread_options { unsigned int rwmixcycle; unsigned int rwmix[2]; unsigned int nice; + unsigned int ioprio; + unsigned int ioprio_class; unsigned int file_service_type; unsigned int group_reporting; unsigned int fadvise_hint; @@ -146,6 +148,8 @@ struct thread_options { unsigned int zero_buffers; unsigned int refill_buffers; unsigned int scramble_buffers; + unsigned int compress_percentage; + unsigned int compress_chunk; unsigned int time_based; unsigned int disable_lat; unsigned int disable_clat; @@ -185,12 +189,6 @@ struct thread_options { char *ioscheduler; - /* - * CPU "io" cycle burner - */ - unsigned int cpuload; - unsigned int cpucycle; - /* * I/O Error handling */ @@ -216,6 +214,8 @@ struct thread_options { int flow_watermark; unsigned int flow_sleep; + unsigned long long offset_increment; + unsigned int sync_file_range; }; @@ -228,6 +228,7 @@ struct thread_options_pack { uint8_t filename[FIO_TOP_STR_MAX]; uint8_t opendir[FIO_TOP_STR_MAX]; uint8_t ioengine[FIO_TOP_STR_MAX]; + uint8_t mmapfile[FIO_TOP_STR_MAX]; uint32_t td_ddir; uint32_t rw_seq; uint32_t kb_base; @@ -262,6 +263,7 @@ struct thread_options_pack { uint32_t create_serialize; uint32_t create_fsync; uint32_t create_on_open; + uint32_t create_only; uint32_t end_fsync; uint32_t pre_read; uint32_t sync_io; @@ -283,9 +285,6 @@ struct thread_options_pack { uint32_t override_sync; uint32_t rand_repeatable; uint32_t use_os_rand; - uint32_t write_lat_log; - uint32_t write_bw_log; - uint32_t write_iops_log; uint32_t log_avg_msec; uint32_t norandommap; uint32_t softrandommap; @@ -310,6 +309,7 @@ struct thread_options_pack { uint64_t zone_range; uint64_t zone_size; uint64_t zone_skip; + uint64_t lockmem; uint32_t mem_type; uint32_t mem_align; @@ -324,6 +324,8 @@ struct thread_options_pack { uint32_t rwmixcycle; uint32_t rwmix[2]; uint32_t nice; + uint32_t ioprio; + uint32_t ioprio_class; uint32_t file_service_type; uint32_t group_reporting; uint32_t fadvise_hint; @@ -331,6 +333,8 @@ struct thread_options_pack { uint32_t zero_buffers; uint32_t refill_buffers; uint32_t scramble_buffers; + unsigned int compress_percentage; + unsigned int compress_chunk; uint32_t time_based; uint32_t disable_lat; uint32_t disable_clat; @@ -370,12 +374,6 @@ struct thread_options_pack { uint8_t ioscheduler[FIO_TOP_STR_MAX]; - /* - * CPU "io" cycle burner - */ - uint32_t cpuload; - uint32_t cpucycle; - /* * I/O Error handling */ @@ -401,11 +399,14 @@ struct thread_options_pack { int32_t flow_watermark; uint32_t flow_sleep; + uint64_t offset_increment; + uint32_t sync_file_range; } __attribute__((packed)); extern void convert_thread_options_to_cpu(struct thread_options *o, struct thread_options_pack *top); extern void convert_thread_options_to_net(struct thread_options_pack *top, struct thread_options *); extern int fio_test_cconv(struct thread_options *); +extern void options_default_fill(struct thread_options *o); #endif