X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=options.c;h=d8b4012f87345387fc3ac6626c28b262f27c73a0;hp=7638afc0f8ed94b87f26ea835c2e59bce44936db;hb=915ca9807717762e288ded3eba0fe5fc82a2ddcd;hpb=104ee4dea7246d51d053076c55b917548dd0e7e2 diff --git a/options.c b/options.c index 7638afc0..d8b4012f 100644 --- a/options.c +++ b/options.c @@ -2295,8 +2295,26 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { { .name = "fadvise_hint", .lname = "Fadvise hint", - .type = FIO_OPT_BOOL, + .type = FIO_OPT_STR, .off1 = offsetof(struct thread_options, fadvise_hint), + .posval = { + { .ival = "0", + .oval = F_ADV_NONE, + .help = "Don't issue fadvise", + }, + { .ival = "1", + .oval = F_ADV_TYPE, + .help = "Advise using fio IO pattern", + }, + { .ival = "random", + .oval = F_ADV_RANDOM, + .help = "Advise using FADV_RANDOM", + }, + { .ival = "sequential", + .oval = F_ADV_SEQUENTIAL, + .help = "Advise using FADV_SEQUENTIAL", + }, + }, .help = "Use fadvise() to advise the kernel on IO pattern", .def = "1", .category = FIO_OPT_C_FILE, @@ -4303,6 +4321,7 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { .name = "steadystate_duration", .lname = "Steady state duration", .alias = "ss_dur", + .parent = "steadystate", .type = FIO_OPT_STR_VAL_TIME, .off1 = offsetof(struct thread_options, ss_dur), .help = "Stop workload upon attaining steady state for specified duration", @@ -4316,6 +4335,7 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { .name = "steadystate_ramp_time", .lname = "Steady state ramp time", .alias = "ss_ramp", + .parent = "steadystate", .type = FIO_OPT_STR_VAL_TIME, .off1 = offsetof(struct thread_options, ss_ramp_time), .help = "Delay before initiation of data collection for steady state job termination testing",