-/*
- * Map of job/command line options
- */
-static struct fio_option options[] = {
- {
- .name = "name",
- .type = FIO_OPT_STR_STORE,
- .off1 = td_var_offset(name),
- },
- {
- .name = "directory",
- .type = FIO_OPT_STR_STORE,
- .off1 = td_var_offset(directory),
- },
- {
- .name = "filename",
- .type = FIO_OPT_STR_STORE,
- .off1 = td_var_offset(filename),
- },
- {
- .name = "rw",
- .type = FIO_OPT_STR,
- .cb = str_rw_cb,
- },
- {
- .name = "ioengine",
- .type = FIO_OPT_STR,
- .cb = str_ioengine_cb,
- },
- {
- .name = "mem",
- .type = FIO_OPT_STR,
- .cb = str_mem_cb,
- },
- {
- .name = "verify",
- .type = FIO_OPT_STR,
- .cb = str_verify_cb,
- },
- {
- .name = "write_iolog",
- .type = FIO_OPT_STR_STORE,
- .off1 = td_var_offset(write_iolog_file),
- },
- {
- .name = "read_iolog",
- .type = FIO_OPT_STR_STORE,
- .off1 = td_var_offset(read_iolog_file),
- },
- {
- .name = "exec_prerun",
- .type = FIO_OPT_STR_STORE,
- .off1 = td_var_offset(exec_prerun),
- },
- {
- .name = "exec_postrun",
- .type = FIO_OPT_STR_STORE,
- .off1 = td_var_offset(exec_postrun),
- },
-#ifdef FIO_HAVE_IOSCHED_SWITCH
- {
- .name = "ioscheduler",
- .type = FIO_OPT_STR_STORE,
- .off1 = td_var_offset(ioscheduler),
- },
-#endif
- {
- .name = "size",
- .type = FIO_OPT_STR_VAL,
- .off1 = td_var_offset(total_file_size),
- },
- {
- .name = "bs",
- .type = FIO_OPT_STR_VAL_INT,
- .off1 = td_var_offset(bs[DDIR_READ]),
- .off2 = td_var_offset(bs[DDIR_WRITE]),
- },
- {
- .name = "offset",
- .type = FIO_OPT_STR_VAL,
- .off1 = td_var_offset(start_offset),
- },
- {
- .name = "zonesize",
- .type = FIO_OPT_STR_VAL,
- .off1 = td_var_offset(zone_size),
- },
- {
- .name = "zoneskip",
- .type = FIO_OPT_STR_VAL,
- .off1 = td_var_offset(zone_skip),
- },
- {
- .name = "lockmem",
- .type = FIO_OPT_STR_VAL,
- .cb = str_lockmem_cb,
- },
- {
- .name = "bsrange",
- .type = FIO_OPT_RANGE,
- .off1 = td_var_offset(min_bs[DDIR_READ]),
- .off2 = td_var_offset(max_bs[DDIR_READ]),
- .off3 = td_var_offset(min_bs[DDIR_WRITE]),
- .off4 = td_var_offset(max_bs[DDIR_WRITE]),
- },
- {
- .name = "nrfiles",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(nr_files),
- },
- {
- .name = "iodepth",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(iodepth),
- },
- {
- .name = "fsync",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(fsync_blocks),
- },
- {
- .name = "rwmixcycle",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(rwmixcycle),
- },
- {
- .name = "rwmixread",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(rwmixread),
- .max_val= 100,
- },
- {
- .name = "rwmixwrite",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(rwmixwrite),
- .max_val= 100,
- },
- {
- .name = "nice",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(nice),
- },
-#ifdef FIO_HAVE_IOPRIO
- {
- .name = "prio",
- .type = FIO_OPT_INT,
- .cb = str_prio_cb,
- },
- {
- .name = "prioclass",
- .type = FIO_OPT_INT,
- .cb = str_prioclass_cb,
- },
-#endif
- {
- .name = "thinktime",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(thinktime),
- },
- {
- .name = "thinktime_blocks",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(thinktime_blocks),
- },
- {
- .name = "rate",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(rate),
- },
- {
- .name = "ratemin",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(ratemin),
- },
- {
- .name = "ratecycle",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(ratecycle),
- },
- {
- .name = "startdelay",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(start_delay),
- },
- {
- .name = "timeout",
- .type = FIO_OPT_STR_VAL_TIME,
- .off1 = td_var_offset(timeout),
- },
- {
- .name = "invalidate",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(invalidate_cache),
- },
- {
- .name = "sync",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(sync_io),
- },
- {
- .name = "bwavgtime",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(bw_avg_time),
- },
- {
- .name = "create_serialize",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(create_serialize),
- },
- {
- .name = "create_fsync",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(create_fsync),
- },
- {
- .name = "loops",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(loops),
- },
- {
- .name = "numjobs",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(numjobs),
- },
- {
- .name = "cpuload",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(cpuload),
- },
- {
- .name = "cpuchunks",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(cpucycle),
- },
- {
- .name = "direct",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(odirect),
- },
- {
- .name = "overwrite",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(overwrite),
- },
-#ifdef FIO_HAVE_CPU_AFFINITY
- {
- .name = "cpumask",
- .type = FIO_OPT_INT,
- .cb = str_cpumask_cb,
- },
-#endif
- {
- .name = "end_fsync",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(end_fsync),
- },
- {
- .name = "unlink",
- .type = FIO_OPT_INT,
- .off1 = td_var_offset(unlink),
- },
- {
- .name = "exitall",
- .type = FIO_OPT_STR_SET,
- .cb = str_exitall_cb,
- },
- {
- .name = "stonewall",
- .type = FIO_OPT_STR_SET,
- .off1 = td_var_offset(stonewall),
- },
- {
- .name = "thread",
- .type = FIO_OPT_STR_SET,
- .off1 = td_var_offset(thread),
- },
- {
- .name = "write_bw_log",
- .type = FIO_OPT_STR_SET,
- .off1 = td_var_offset(write_bw_log),
- },
- {
- .name = "write_lat_log",
- .type = FIO_OPT_STR_SET,
- .off1 = td_var_offset(write_lat_log),
- },
- {
- .name = "norandommap",
- .type = FIO_OPT_STR_SET,
- .off1 = td_var_offset(norandommap),
- },
- {
- .name = "bs_unaligned",
- .type = FIO_OPT_STR_SET,
- .off1 = td_var_offset(bs_unaligned),
- },
- {
- .name = "hugepage-size",
- .type = FIO_OPT_STR_VAL,
- .off1 = td_var_offset(hugepage_size),
- },
- {
- .name = NULL,
- },
-};