X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=options.c;h=6ceefbc10a0fd158e5bbcfd48a825af9851d375a;hp=a01b2d9b0c574621e127c1262ce965fc102e73f7;hb=2243dfc796a8a6e137893a57a77949df7657dd71;hpb=a4d3b4dbf594be6223a21a47a7ce4c21c7dddaf0 diff --git a/options.c b/options.c index a01b2d9b..6ceefbc1 100644 --- a/options.c +++ b/options.c @@ -1079,16 +1079,6 @@ static int str_gtod_reduce_cb(void *data, int *il) return 0; } -static int str_gtod_cpu_cb(void *data, long long *il) -{ - struct thread_data *td = data; - int val = *il; - - td->o.gtod_cpu = val; - td->o.gtod_offload = 1; - return 0; -} - static int str_size_cb(void *data, unsigned long long *__val) { struct thread_data *td = data; @@ -3404,7 +3394,7 @@ struct fio_option fio_options[FIO_MAX_OPTS] = { .name = "gtod_cpu", .lname = "Dedicated gettimeofday() CPU", .type = FIO_OPT_INT, - .cb = str_gtod_cpu_cb, + .off1 = td_var_offset(gtod_cpu), .help = "Set up dedicated gettimeofday() thread on this CPU", .verify = gtod_cpu_verify, .category = FIO_OPT_C_GENERAL, @@ -4216,7 +4206,7 @@ int __fio_option_is_set(struct thread_options *o, unsigned int off1) if (!opt) { log_err("fio: no option found at offset %u\n", off1); - return 0; + return -1; } opt_off = opt - &fio_options[0];