options: group tiobench options together
authorJens Axboe <axboe@kernel.dk>
Sat, 31 Mar 2012 11:55:54 +0000 (13:55 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 31 Mar 2012 11:55:54 +0000 (13:55 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
options.c
options.h
profiles/tiobench.c

index 5f73c102717bd52cc01340b445c097cc8c5fca2d..c08595bb62f08f41205fed0eca3751cf29933060 100644 (file)
--- a/options.c
+++ b/options.c
@@ -717,6 +717,10 @@ static struct opt_group fio_opt_groups[] = {
                .name   = "Logging",
                .mask   = FIO_OPT_C_LOG,
        },
+       {
+               .name   = "Profiles",
+               .mask   = FIO_OPT_C_PROFILE,
+       },
        {
                .name   = NULL,
        },
@@ -829,6 +833,11 @@ static struct opt_group fio_opt_cat_groups[] = {
                .name   = "I/O buffers",
                .mask   = FIO_OPT_G_IO_BUF,
        },
+       {
+               .name   = "Tiobench profile",
+               .mask   = FIO_OPT_G_TIOBENCH,
+       },
+
        {
                .name   = NULL,
        }
@@ -2585,7 +2594,7 @@ struct fio_option fio_options[FIO_MAX_OPTS] = {
                .type   = FIO_OPT_STR_STORE,
                .off1   = td_var_offset(profile),
                .help   = "Select a specific builtin performance test",
-               .category = FIO_OPT_C_GENERAL,
+               .category = FIO_OPT_C_PROFILE,
                .group  = FIO_OPT_G_INVALID,
        },
        {
index 28bfe9191e84881c15a34337af9de18b1134fc8a..786574f84b498ddc61533fb73305018df38e9730 100644 (file)
--- a/options.h
+++ b/options.h
@@ -53,6 +53,7 @@ enum opt_category {
        __FIO_OPT_C_FILE,
        __FIO_OPT_C_STAT,
        __FIO_OPT_C_LOG,
+       __FIO_OPT_C_PROFILE,
        __FIO_OPT_C_NR,
 
        FIO_OPT_C_GENERAL       = (1U << __FIO_OPT_C_GENERAL),
@@ -60,6 +61,7 @@ enum opt_category {
        FIO_OPT_C_FILE          = (1U << __FIO_OPT_C_FILE),
        FIO_OPT_C_STAT          = (1U << __FIO_OPT_C_STAT),
        FIO_OPT_C_LOG           = (1U << __FIO_OPT_C_LOG),
+       FIO_OPT_C_PROFILE       = (1U << __FIO_OPT_C_PROFILE),
        FIO_OPT_C_INVALID       = (1U << __FIO_OPT_C_NR),
 };
 
@@ -84,6 +86,7 @@ enum opt_category_group {
        __FIO_OPT_G_THINKTIME,
        __FIO_OPT_G_RANDOM,
        __FIO_OPT_G_IO_BUF,
+       __FIO_OPT_G_TIOBENCH,
        __FIO_OPT_G_NR,
 
        FIO_OPT_G_RATE          = (1U << __FIO_OPT_G_RATE),
@@ -106,6 +109,7 @@ enum opt_category_group {
        FIO_OPT_G_THINKTIME     = (1U << __FIO_OPT_G_THINKTIME),
        FIO_OPT_G_RANDOM        = (1U << __FIO_OPT_G_RANDOM),
        FIO_OPT_G_IO_BUF        = (1U << __FIO_OPT_G_IO_BUF),
+       FIO_OPT_G_TIOBENCH      = (1U << __FIO_OPT_G_TIOBENCH),
        FIO_OPT_G_INVALID       = (1U << __FIO_OPT_G_NR),
 };
 
index 5ab602af75e5c4c4db67fa1aa1fa983f49e70c8e..0279e1cafbec95d286f802889ec8045729a2c3cc 100644 (file)
@@ -27,7 +27,8 @@ static struct fio_option options[] = {
                .type   = FIO_OPT_STR_VAL,
                .roff1  = &size,
                .help   = "Size in MB",
-               .category = FIO_OPT_C_IO,
+               .category = FIO_OPT_C_PROFILE,
+               .group  = FIO_OPT_G_TIOBENCH,
        },
        {
                .name   = "block",
@@ -36,7 +37,8 @@ static struct fio_option options[] = {
                .roff1  = &bs,
                .help   = "Block size in bytes",
                .def    = "4k",
-               .category = FIO_OPT_C_IO,
+               .category = FIO_OPT_C_PROFILE,
+               .group  = FIO_OPT_G_TIOBENCH,
        },
        {
                .name   = "numruns",
@@ -44,7 +46,8 @@ static struct fio_option options[] = {
                .type   = FIO_OPT_INT,
                .roff1  = &loops,
                .help   = "Number of runs",
-               .category = FIO_OPT_C_GENERAL,
+               .category = FIO_OPT_C_PROFILE,
+               .group  = FIO_OPT_G_TIOBENCH,
        },
        {
                .name   = "dir",
@@ -52,7 +55,8 @@ static struct fio_option options[] = {
                .type   = FIO_OPT_STR_STORE,
                .roff1  = &dir,
                .help   = "Test directory",
-               .category = FIO_OPT_C_FILE,
+               .category = FIO_OPT_C_PROFILE,
+               .group  = FIO_OPT_G_TIOBENCH,
        },
        {
                .name   = "threads",
@@ -60,7 +64,8 @@ static struct fio_option options[] = {
                .type   = FIO_OPT_INT,
                .roff1  = &nthreads,
                .help   = "Number of Threads",
-               .category = FIO_OPT_C_GENERAL,
+               .category = FIO_OPT_C_PROFILE,
+               .group  = FIO_OPT_G_TIOBENCH,
        },
        {
                .name   = NULL,