X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.c;h=9adc29aee47bbbfe9198a67458fc17c5d8b456b1;hp=9a6c31a65d912ba39a44f2cae1ce9ec8378146a6;hb=91c0e7c5de1b4413c5fab8f5746272d1aee10f78;hpb=e476994eed3bee246ca166ea6ad6018911408e9b diff --git a/fio.c b/fio.c index 9a6c31a6..9adc29ae 100644 --- a/fio.c +++ b/fio.c @@ -26,26 +26,25 @@ #include #include "fio.h" -#include "hash.h" #include "smalloc.h" -#include "verify.h" -#include "trim.h" -#include "diskutil.h" -#include "profile.h" -#include "lib/rand.h" -#include "memalign.h" -#include "client.h" -#include "server.h" int main(int argc, char *argv[], char *envp[]) { if (initialize_fio(envp)) return 1; +#if !defined(CONFIG_GETTIMEOFDAY) && !defined(CONFIG_CLOCK_GETTIME) +#error "No available clock source!" +#endif + if (parse_options(argc, argv)) return 1; + fio_time_init(); + if (nr_clients) { + set_genesis_time(); + if (fio_start_all_clients()) return 1; return fio_handle_clients(&fio_client_ops);