Add option for including byte offset for each log entry
[fio.git] / options.c
index 74347f3554e02b027d42f8012ebe96cbb9cbc716..6d326d4e6fca447e52b52d3493ee1ffc829a60d9 100644 (file)
--- a/options.c
+++ b/options.c
@@ -3094,6 +3094,16 @@ struct fio_option fio_options[FIO_MAX_OPTS] = {
                .category = FIO_OPT_C_LOG,
                .group  = FIO_OPT_G_INVALID,
        },
+       {
+               .name   = "log_offset",
+               .lname  = "Log offset of IO",
+               .type   = FIO_OPT_BOOL,
+               .off1   = td_var_offset(log_offset),
+               .help   = "Include offset of IO for each log entry",
+               .def    = "0",
+               .category = FIO_OPT_C_LOG,
+               .group  = FIO_OPT_G_INVALID,
+       },
        {
                .name   = "bwavgtime",
                .lname  = "Bandwidth average time",