projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make test for gnuplot work with empty strings.
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 1760762040c65fb83d0eb10a0466738c514551ec..42a2ea0716c38306ba109b31385002fbc33da98c 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-342,13
+342,8
@@
static int str_mem_cb(void *data, const char *mem)
{
struct thread_data *td = data;
{
struct thread_data *td = data;
- if (td->o.mem_type == MEM_MMAPHUGE || td->o.mem_type == MEM_MMAP)
{
+ if (td->o.mem_type == MEM_MMAPHUGE || td->o.mem_type == MEM_MMAP)
td->mmapfile = get_opt_postfix(mem);
td->mmapfile = get_opt_postfix(mem);
- if (td->o.mem_type == MEM_MMAPHUGE && !td->mmapfile) {
- log_err("fio: mmaphuge:/path/to/file\n");
- return 1;
- }
- }
return 0;
}
return 0;
}
@@
-1282,12
+1277,12
@@
static struct fio_option options[FIO_MAX_OPTS] = {
.help = "POSIX asynchronous IO",
},
#endif
.help = "POSIX asynchronous IO",
},
#endif
-#ifdef
FIO_HAVE
_SOLARISAIO
+#ifdef
CONFIG
_SOLARISAIO
{ .ival = "solarisaio",
.help = "Solaris native asynchronous IO",
},
#endif
{ .ival = "solarisaio",
.help = "Solaris native asynchronous IO",
},
#endif
-#ifdef
FIO_HAVE
_WINDOWSAIO
+#ifdef
CONFIG
_WINDOWSAIO
{ .ival = "windowsaio",
.help = "Windows native asynchronous IO"
},
{ .ival = "windowsaio",
.help = "Windows native asynchronous IO"
},
@@
-1337,12
+1332,12
@@
static struct fio_option options[FIO_MAX_OPTS] = {
.help = "Fusion-io atomic write engine",
},
#endif
.help = "Fusion-io atomic write engine",
},
#endif
-#ifdef
FIO_HAVE_E4_ENG
+#ifdef
CONFIG_LINUX_EXT4_MOVE_EXTENT
{ .ival = "e4defrag",
.help = "ext4 defrag engine",
},
#endif
{ .ival = "e4defrag",
.help = "ext4 defrag engine",
},
#endif
-#ifdef
FIO_HAVE_FALLOC_ENG
+#ifdef
CONFIG_LINUX_FALLOCATE
{ .ival = "falloc",
.help = "fallocate() file based engine",
},
{ .ival = "falloc",
.help = "fallocate() file based engine",
},
@@
-1583,7
+1578,7
@@
static struct fio_option options[FIO_MAX_OPTS] = {
},
.parent = "nrfiles",
},
},
.parent = "nrfiles",
},
-#ifdef
FIO_HAVE
_FALLOCATE
+#ifdef
CONFIG_POSIX
_FALLOCATE
{
.name = "fallocate",
.type = FIO_OPT_STR,
{
.name = "fallocate",
.type = FIO_OPT_STR,
@@
-1599,7
+1594,7
@@
static struct fio_option options[FIO_MAX_OPTS] = {
.oval = FIO_FALLOCATE_POSIX,
.help = "Use posix_fallocate()",
},
.oval = FIO_FALLOCATE_POSIX,
.help = "Use posix_fallocate()",
},
-#ifdef
FIO_HAVE
_LINUX_FALLOCATE
+#ifdef
CONFIG
_LINUX_FALLOCATE
{ .ival = "keep",
.oval = FIO_FALLOCATE_KEEP_SIZE,
.help = "Use fallocate(..., FALLOC_FL_KEEP_SIZE, ...)",
{ .ival = "keep",
.oval = FIO_FALLOCATE_KEEP_SIZE,
.help = "Use fallocate(..., FALLOC_FL_KEEP_SIZE, ...)",
@@
-1616,7
+1611,7
@@
static struct fio_option options[FIO_MAX_OPTS] = {
},
},
},
},
},
},
-#endif /*
FIO_HAVE
_FALLOCATE */
+#endif /*
CONFIG_POSIX
_FALLOCATE */
{
.name = "fadvise_hint",
.type = FIO_OPT_BOOL,
{
.name = "fadvise_hint",
.type = FIO_OPT_BOOL,
@@
-1966,6
+1961,12
@@
static struct fio_option options[FIO_MAX_OPTS] = {
.parent = "verify_async",
},
#endif
.parent = "verify_async",
},
#endif
+ {
+ .name = "experimental_verify",
+ .off1 = td_var_offset(experimental_verify),
+ .type = FIO_OPT_BOOL,
+ .help = "Enable experimental verification",
+ },
#ifdef FIO_HAVE_TRIM
{
.name = "trim_percentage",
#ifdef FIO_HAVE_TRIM
{
.name = "trim_percentage",
@@
-2433,8
+2434,9
@@
static struct fio_option options[FIO_MAX_OPTS] = {
.name = "percentile_list",
.type = FIO_OPT_FLOAT_LIST,
.off1 = td_var_offset(percentile_list),
.name = "percentile_list",
.type = FIO_OPT_FLOAT_LIST,
.off1 = td_var_offset(percentile_list),
- .off2 = td_var_offset(
overwrite_plist
),
+ .off2 = td_var_offset(
percentile_precision
),
.help = "Specify a custom list of percentiles to report",
.help = "Specify a custom list of percentiles to report",
+ .def = "1:5:10:20:30:40:50:60:70:80:90:95:99:99.5:99.9:99.95:99.99",
.maxlen = FIO_IO_U_LIST_MAX_LEN,
.minfp = 0.0,
.maxfp = 100.0,
.maxlen = FIO_IO_U_LIST_MAX_LEN,
.minfp = 0.0,
.maxfp = 100.0,
@@
-2495,6
+2497,13
@@
static struct fio_option options[FIO_MAX_OPTS] = {
.help = "Set up dedicated gettimeofday() thread on this CPU",
.verify = gtod_cpu_verify,
},
.help = "Set up dedicated gettimeofday() thread on this CPU",
.verify = gtod_cpu_verify,
},
+ {
+ .name = "unified_rw_reporting",
+ .type = FIO_OPT_BOOL,
+ .off1 = td_var_offset(unified_rw_rep),
+ .help = "Unify reporting across data direction",
+ .def = "0",
+ },
{
.name = "continue_on_error",
.type = FIO_OPT_STR,
{
.name = "continue_on_error",
.type = FIO_OPT_STR,