X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=libfio.c;h=960daf69f6c0d145998a58bbbcdb225b861c60d6;hb=3ee2a3c1ae52841ecb4926ab5748e6d856fd4b2c;hp=d88ed4ed2032ecccfad5435b0de10abc42157973;hpb=3aea75b14510301a80744b417ac08840ccfcf5b3;p=fio.git diff --git a/libfio.c b/libfio.c index d88ed4ed..960daf69 100644 --- a/libfio.c +++ b/libfio.c @@ -34,6 +34,7 @@ #include "os/os.h" #include "filelock.h" #include "helper_thread.h" +#include "filehash.h" /* * Just expose an empty list, if the OS does not support disk util stats @@ -151,6 +152,7 @@ void reset_all_stats(struct thread_data *td) memcpy(&td->start, &td->epoch, sizeof(struct timeval)); memcpy(&td->iops_sample_time, &td->epoch, sizeof(struct timeval)); memcpy(&td->bw_sample_time, &td->epoch, sizeof(struct timeval)); + memcpy(&td->ss.prev_time, &td->epoch, sizeof(struct timeval)); lat_target_reset(td); clear_rusage_stat(td); @@ -376,6 +378,8 @@ int initialize_fio(char *envp[]) return 1; } + file_hash_init(); + /* * We need locale for number printing, if it isn't set then just * go with the US format.