Add option to skip delays when replaying traces
[fio.git] / options.c
index 6dd74ed42732aff997a41ecdeee08d5e09cfac33..82a7289e517ff1d316f8b14fa59f592b11903f57 100644 (file)
--- a/options.c
+++ b/options.c
@@ -3,7 +3,6 @@
 #include <unistd.h>
 #include <ctype.h>
 #include <string.h>
-#include <getopt.h>
 #include <assert.h>
 #include <libgen.h>
 #include <fcntl.h>
@@ -1482,6 +1481,13 @@ static struct fio_option options[FIO_MAX_OPTS] = {
                .off1   = td_var_offset(read_iolog_file),
                .help   = "Playback IO pattern from file",
        },
+       {
+               .name   = "replay_no_stall",
+               .type   = FIO_OPT_INT,
+               .off1   = td_var_offset(no_stall),
+               .def    = "0",
+               .help   = "Playback IO pattern file as fast as possible without stalls",
+       },
        {
                .name   = "exec_prerun",
                .type   = FIO_OPT_STR_STORE,