X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=thread_options.h;h=5354473bce9c9cb2cdabe517f85f1e256429e781;hb=b11bd8d8b784feb591b3904ca787c42b3799a8cf;hp=323dacd912c6e3385564108f0408efe9cb290586;hpb=d79db1222039e906dd49ae290daa59701f4e2385;p=fio.git diff --git a/thread_options.h b/thread_options.h index 323dacd9..5354473b 100644 --- a/thread_options.h +++ b/thread_options.h @@ -20,11 +20,20 @@ enum fio_memtype { /* * What type of errors to continue on when continue_on_error is used */ +enum error_type_bit { + ERROR_TYPE_READ_BIT = 0, + ERROR_TYPE_WRITE_BIT = 1, + ERROR_TYPE_VERIFY_BIT = 2, + ERROR_TYPE_CNT = 3, +}; + +#define ERROR_STR_MAX 128 + enum error_type { ERROR_TYPE_NONE = 0, - ERROR_TYPE_READ = 1 << 0, - ERROR_TYPE_WRITE = 1 << 1, - ERROR_TYPE_VERIFY = 1 << 2, + ERROR_TYPE_READ = 1 << ERROR_TYPE_READ_BIT, + ERROR_TYPE_WRITE = 1 << ERROR_TYPE_WRITE_BIT, + ERROR_TYPE_VERIFY = 1 << ERROR_TYPE_VERIFY_BIT, ERROR_TYPE_ANY = 0xffff, }; @@ -68,6 +77,10 @@ struct thread_options { struct bssplit *bssplit[DDIR_RWDIR_CNT]; unsigned int bssplit_nr[DDIR_RWDIR_CNT]; + int *ignore_error[ERROR_TYPE_CNT]; + unsigned int ignore_error_nr[ERROR_TYPE_CNT]; + unsigned int error_dump; + unsigned int nr_files; unsigned int open_files; enum file_lock_mode file_lock_mode; @@ -106,6 +119,12 @@ struct thread_options { unsigned int bs_unaligned; unsigned int fsync_on_close; + unsigned int random_distribution; + fio_fp64_t zipf_theta; + fio_fp64_t pareto_h; + + unsigned int random_generator; + unsigned int hugepage_size; unsigned int rw_min_bs; unsigned int thinktime; @@ -128,6 +147,8 @@ struct thread_options { enum fio_memtype mem_type; unsigned int mem_align; + unsigned max_latency; + unsigned int stonewall; unsigned int new_group; unsigned int numjobs; @@ -135,6 +156,14 @@ struct thread_options { unsigned int cpumask_set; os_cpu_mask_t verify_cpumask; unsigned int verify_cpumask_set; +#ifdef FIO_HAVE_LIBNUMA + struct bitmask *numa_cpunodesmask; + unsigned int numa_cpumask_set; + unsigned short numa_mem_mode; + unsigned int numa_mem_prefer_node; + struct bitmask *numa_memnodesmask; + unsigned int numa_memmask_set; +#endif unsigned int iolog; unsigned int rwmixcycle; unsigned int rwmix[2]; @@ -246,12 +275,16 @@ struct thread_options_pack { uint64_t file_size_high; uint64_t start_offset; - uint32_t bs[2]; - uint32_t ba[2]; - uint32_t min_bs[2]; - uint32_t max_bs[2]; - struct bssplit bssplit[2][BSSPLIT_MAX]; - uint32_t bssplit_nr[2]; + uint32_t bs[DDIR_RWDIR_CNT]; + uint32_t ba[DDIR_RWDIR_CNT]; + uint32_t min_bs[DDIR_RWDIR_CNT]; + uint32_t max_bs[DDIR_RWDIR_CNT]; + struct bssplit bssplit[DDIR_RWDIR_CNT][BSSPLIT_MAX]; + uint32_t bssplit_nr[DDIR_RWDIR_CNT]; + + uint32_t ignore_error[ERROR_TYPE_CNT][ERROR_STR_MAX]; + uint32_t ignore_error_nr[ERROR_TYPE_CNT]; + uint32_t error_dump; uint32_t nr_files; uint32_t open_files; @@ -291,6 +324,12 @@ struct thread_options_pack { uint32_t bs_unaligned; uint32_t fsync_on_close; + uint32_t random_distribution; + fio_fp64_t zipf_theta; + fio_fp64_t pareto_h; + + uint32_t random_generator; + uint32_t hugepage_size; uint32_t rw_min_bs; uint32_t thinktime; @@ -313,6 +352,8 @@ struct thread_options_pack { uint32_t mem_type; uint32_t mem_align; + uint32_t max_latency; + uint32_t stonewall; uint32_t new_group; uint32_t numjobs; @@ -366,11 +407,11 @@ struct thread_options_pack { uint8_t exec_prerun[FIO_TOP_STR_MAX]; uint8_t exec_postrun[FIO_TOP_STR_MAX]; - uint32_t rate[2]; - uint32_t ratemin[2]; + uint32_t rate[DDIR_RWDIR_CNT]; + uint32_t ratemin[DDIR_RWDIR_CNT]; uint32_t ratecycle; - uint32_t rate_iops[2]; - uint32_t rate_iops_min[2]; + uint32_t rate_iops[DDIR_RWDIR_CNT]; + uint32_t rate_iops_min[DDIR_RWDIR_CNT]; uint8_t ioscheduler[FIO_TOP_STR_MAX];