static int open_file(struct thread_data *td, struct fio_file *f)
{
- struct timespec start, end;
+ struct timespec start;
int do_lat = !td->o.disable_lat;
dprint(FD_FILE, "fd open %s\n", f->file_name);
}
if (do_lat) {
- unsigned long long nsec;
+ uint64_t nsec;
- fio_gettime(&end, NULL);
- nsec = ntime_since(&start, &end);
- add_lat_sample(td, DDIR_WRITE, nsec, 0, 0);
+ nsec = ntime_since_now(&start);
+ add_clat_sample(td, DDIR_READ, nsec, 0, 0);
}
return 0;
.get_file_size = get_file_size,
.open_file = open_file,
.close_file = generic_close_file,
- .flags = FIO_DISKLESSIO | FIO_SYNCIO | FIO_FAKEIO,
+ .flags = FIO_DISKLESSIO | FIO_SYNCIO | FIO_FAKEIO |
+ FIO_NOSTATS,
};
static void fio_init fio_filecreate_register(void)