From: Jens Axboe Date: Fri, 16 Mar 2012 18:16:27 +0000 (+0100) Subject: Add FIO_OPT_G_IO_ENG category X-Git-Tag: gfio-0.1~108 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=e231bbe64fffda2090b74941efe21d9c0013cd1e Add FIO_OPT_G_IO_ENG category Signed-off-by: Jens Axboe --- diff --git a/engines/libaio.c b/engines/libaio.c index e4869aa9..6bbd363d 100644 --- a/engines/libaio.c +++ b/engines/libaio.c @@ -35,6 +35,7 @@ static struct fio_option options[] = { .type = FIO_OPT_STR_SET, .off1 = offsetof(struct libaio_options, userspace_reap), .help = "Use alternative user-space reap implementation", + .category = FIO_OPT_G_IO_ENG, }, { .name = NULL, diff --git a/engines/net.c b/engines/net.c index cf6025f1..55c8ab29 100644 --- a/engines/net.c +++ b/engines/net.c @@ -56,6 +56,7 @@ static struct fio_option options[] = { .type = FIO_OPT_STR_STORE, .cb = str_hostname_cb, .help = "Hostname for net IO engine", + .category = FIO_OPT_G_IO_ENG, }, { .name = "port", @@ -64,6 +65,7 @@ static struct fio_option options[] = { .minval = 1, .maxval = 65535, .help = "Port to use for TCP or UDP net connections", + .category = FIO_OPT_G_IO_ENG, }, { .name = "protocol", @@ -72,6 +74,7 @@ static struct fio_option options[] = { .off1 = offsetof(struct netio_options, proto), .help = "Network protocol to use", .def = "tcp", + .category = FIO_OPT_G_IO_ENG, .posval = { { .ival = "tcp", .oval = FIO_TYPE_TCP, @@ -92,6 +95,7 @@ static struct fio_option options[] = { .type = FIO_OPT_STR_SET, .off1 = offsetof(struct netio_options, listen), .help = "Listen for incoming TCP connections", + .category = FIO_OPT_G_IO_ENG, }, { .name = NULL, diff --git a/options.c b/options.c index 3caaa4f2..03f9d413 100644 --- a/options.c +++ b/options.c @@ -870,6 +870,10 @@ static struct opt_group fio_opt_groups[] = { .name = "IO buffer", .mask = FIO_OPT_G_IO_BUF, }, + { + .name = "IO engine", + .mask = FIO_OPT_G_IO_ENG, + }, { .name = "Random", .mask = FIO_OPT_G_RAND, diff --git a/options.h b/options.h index 0b93c05a..d130fc7f 100644 --- a/options.h +++ b/options.h @@ -49,23 +49,24 @@ struct opt_group { enum opt_category { __FIO_OPT_G_DESC = 0, - __FIO_OPT_G_FILE = 1, - __FIO_OPT_G_MISC = 2, - __FIO_OPT_G_IO = 3, - __FIO_OPT_G_IO_DDIR = 4, - __FIO_OPT_G_IO_BUF = 5, - __FIO_OPT_G_RAND = 6, - __FIO_OPT_G_OS = 7, - __FIO_OPT_G_MEM = 8, - __FIO_OPT_G_VERIFY = 9, - __FIO_OPT_G_CPU = 10, - __FIO_OPT_G_LOG = 11, - __FIO_OPT_G_ZONE = 12, - __FIO_OPT_G_CACHE = 13, - __FIO_OPT_G_STAT = 14, - __FIO_OPT_G_ERR = 15, - __FIO_OPT_G_JOB = 16, - __FIO_OPT_G_NR = 17, + __FIO_OPT_G_FILE, + __FIO_OPT_G_IO, + __FIO_OPT_G_IO_DDIR, + __FIO_OPT_G_IO_BUF, + __FIO_OPT_G_IO_ENG, + __FIO_OPT_G_CACHE, + __FIO_OPT_G_VERIFY, + __FIO_OPT_G_ZONE, + __FIO_OPT_G_MEM, + __FIO_OPT_G_LOG, + __FIO_OPT_G_ERR, + __FIO_OPT_G_STAT, + __FIO_OPT_G_CPU, + __FIO_OPT_G_OS, + __FIO_OPT_G_MISC, + __FIO_OPT_G_RAND, + __FIO_OPT_G_JOB, + __FIO_OPT_G_NR, FIO_OPT_G_DESC = (1U << __FIO_OPT_G_DESC), FIO_OPT_G_FILE = (1U << __FIO_OPT_G_FILE), @@ -73,6 +74,7 @@ enum opt_category { FIO_OPT_G_IO = (1U << __FIO_OPT_G_IO), FIO_OPT_G_IO_DDIR = (1U << __FIO_OPT_G_IO_DDIR), FIO_OPT_G_IO_BUF = (1U << __FIO_OPT_G_IO_BUF), + FIO_OPT_G_IO_ENG = (1U << __FIO_OPT_G_IO_ENG), FIO_OPT_G_RAND = (1U << __FIO_OPT_G_RAND), FIO_OPT_G_OS = (1U << __FIO_OPT_G_OS), FIO_OPT_G_MEM = (1U << __FIO_OPT_G_MEM),