projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check string length of ts->description, not value
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 74c24d02d5d4bc200da3cf671c64d363d02e92a4..48bb2a4d318fb005ac6463f5864769682bfdaddb 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-595,6
+595,14
@@
static char *get_next_file_name(char **ptr)
return start;
}
return start;
}
+static int str_hostname_cb(void *data, const char *input)
+{
+ struct thread_data *td = data;
+
+ td->o.filename = strdup(input);
+ return 0;
+}
+
static int str_filename_cb(void *data, const char *input)
{
struct thread_data *td = data;
static int str_filename_cb(void *data, const char *input)
{
struct thread_data *td = data;
@@
-749,6
+757,17
@@
static int str_write_lat_log_cb(void *data, const char *str)
return 0;
}
return 0;
}
+static int str_write_iops_log_cb(void *data, const char *str)
+{
+ struct thread_data *td = data;
+
+ if (str)
+ td->o.iops_log_file = strdup(str);
+
+ td->o.write_iops_log = 1;
+ return 0;
+}
+
static int str_gtod_reduce_cb(void *data, int *il)
{
struct thread_data *td = data;
static int str_gtod_reduce_cb(void *data, int *il)
{
struct thread_data *td = data;
@@
-758,6
+777,7
@@
static int str_gtod_reduce_cb(void *data, int *il)
td->o.disable_clat = !!val;
td->o.disable_slat = !!val;
td->o.disable_bw = !!val;
td->o.disable_clat = !!val;
td->o.disable_slat = !!val;
td->o.disable_bw = !!val;
+ td->o.clat_percentiles = !val;
if (val)
td->tv_cache_mask = 63;
if (val)
td->tv_cache_mask = 63;
@@
-829,9
+849,6
@@
static int kb_base_verify(struct fio_option *o, void *data)
return 0;
}
return 0;
}
-#define __stringify_1(x) #x
-#define __stringify(x) __stringify_1(x)
-
/*
* Map of job/command line options
*/
/*
* Map of job/command line options
*/
@@
-863,6
+880,12
@@
static struct fio_option options[FIO_MAX_OPTS] = {
.prio = -1, /* must come after "directory" */
.help = "File(s) to use for the workload",
},
.prio = -1, /* must come after "directory" */
.help = "File(s) to use for the workload",
},
+ {
+ .name = "hostname",
+ .type = FIO_OPT_STR_STORE,
+ .cb = str_hostname_cb,
+ .help = "Hostname for net IO engine",
+ },
{
.name = "kb_base",
.type = FIO_OPT_INT,
{
.name = "kb_base",
.type = FIO_OPT_INT,
@@
-1824,6
+1847,15
@@
static struct fio_option options[FIO_MAX_OPTS] = {
.help = "Time window over which to calculate bandwidth"
" (msec)",
.def = "500",
.help = "Time window over which to calculate bandwidth"
" (msec)",
.def = "500",
+ .parent = "write_bw_log",
+ },
+ {
+ .name = "iopsavgtime",
+ .type = FIO_OPT_INT,
+ .off1 = td_var_offset(iops_avg_time),
+ .help = "Time window over which to calculate IOPS (msec)",
+ .def = "500",
+ .parent = "write_iops_log",
},
{
.name = "create_serialize",
},
{
.name = "create_serialize",
@@
-1941,12
+1973,19
@@
static struct fio_option options[FIO_MAX_OPTS] = {
.cb = str_write_lat_log_cb,
.help = "Write log of latency during run",
},
.cb = str_write_lat_log_cb,
.help = "Write log of latency during run",
},
+ {
+ .name = "write_iops_log",
+ .type = FIO_OPT_STR,
+ .off1 = td_var_offset(write_iops_log),
+ .cb = str_write_iops_log_cb,
+ .help = "Write log of IOPS during run",
+ },
{
.name = "hugepage-size",
.type = FIO_OPT_INT,
.off1 = td_var_offset(hugepage_size),
.help = "When using hugepages, specify size of each page",
{
.name = "hugepage-size",
.type = FIO_OPT_INT,
.off1 = td_var_offset(hugepage_size),
.help = "When using hugepages, specify size of each page",
- .def = __stringify(FIO_HUGE_PAGE),
+ .def = __
fio_
stringify(FIO_HUGE_PAGE),
},
{
.name = "group_reporting",
},
{
.name = "group_reporting",
@@
-1966,12
+2005,19
@@
static struct fio_option options[FIO_MAX_OPTS] = {
.off1 = td_var_offset(refill_buffers),
.help = "Refill IO buffers on every IO submit",
},
.off1 = td_var_offset(refill_buffers),
.help = "Refill IO buffers on every IO submit",
},
+ {
+ .name = "scramble_buffers",
+ .type = FIO_OPT_BOOL,
+ .off1 = td_var_offset(scramble_buffers),
+ .help = "Slightly scramble buffers on every IO submit",
+ .def = "1",
+ },
{
.name = "clat_percentiles",
.type = FIO_OPT_BOOL,
.off1 = td_var_offset(clat_percentiles),
.help = "Enable the reporting of completion latency percentiles",
{
.name = "clat_percentiles",
.type = FIO_OPT_BOOL,
.off1 = td_var_offset(clat_percentiles),
.help = "Enable the reporting of completion latency percentiles",
- .def = "
0
",
+ .def = "
1
",
},
{
.name = "percentile_list",
},
{
.name = "percentile_list",