From: Jens Axboe Date: Sat, 31 Mar 2012 11:55:54 +0000 (+0200) Subject: options: group tiobench options together X-Git-Tag: gfio-0.1~15 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=13fca827b9c2bb71358fcaa3a7e6e89419d5b1b8 options: group tiobench options together Signed-off-by: Jens Axboe --- diff --git a/options.c b/options.c index 5f73c102..c08595bb 100644 --- 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, }, { diff --git a/options.h b/options.h index 28bfe919..786574f8 100644 --- 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), }; diff --git a/profiles/tiobench.c b/profiles/tiobench.c index 5ab602af..0279e1ca 100644 --- a/profiles/tiobench.c +++ b/profiles/tiobench.c @@ -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,