Add FIO_OPT_G_IO_ENG category
authorJens Axboe <axboe@kernel.dk>
Fri, 16 Mar 2012 18:16:27 +0000 (19:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 16 Mar 2012 18:16:27 +0000 (19:16 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/libaio.c
engines/net.c
options.c
options.h

index e4869aa9d6a8648a7dbe9413421019f7b7b83234..6bbd363dce02257e6a1556109319bdb9970c1b6d 100644 (file)
@@ -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,
index cf6025f1aa5ca6ecce389654be999ca135369476..55c8ab2904d6c89be6062a310bd43e11964889c8 100644 (file)
@@ -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,
index 3caaa4f2d254129cba2745db3ccdb27e85b2a28b..03f9d413cafe2561ed860a516105703a7946b030 100644 (file)
--- 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,
index 0b93c05a7a1c3def92508168e5470332e05680aa..d130fc7faed400732a3d55709b11cb18d8b3f48a 100644 (file)
--- 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),