projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
time: add ntime_since_now()
[fio.git]
/
engines
/
filecreate.c
diff --git
a/engines/filecreate.c
b/engines/filecreate.c
index 171dcc95b025d9331d9158a57acde012e482737e..d753df24c94f830b6ef581a754677a8c0212b1ff 100644
(file)
--- a/
engines/filecreate.c
+++ b/
engines/filecreate.c
@@
-14,7
+14,7
@@
static int open_file(struct thread_data *td, struct fio_file *f)
{
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);
int do_lat = !td->o.disable_lat;
dprint(FD_FILE, "fd open %s\n", f->file_name);
@@
-43,10
+43,9
@@
static int open_file(struct thread_data *td, struct fio_file *f)
}
if (do_lat) {
}
if (do_lat) {
- u
nsigned long long
nsec;
+ u
int64_t
nsec;
- fio_gettime(&end, NULL);
- nsec = ntime_since(&start, &end);
+ nsec = ntime_since_now(&start);
add_lat_sample(td, DDIR_WRITE, nsec, 0, 0);
}
add_lat_sample(td, DDIR_WRITE, nsec, 0, 0);
}
@@
-76,7
+75,8
@@
static struct ioengine_ops ioengine = {
.get_file_size = get_file_size,
.open_file = open_file,
.close_file = generic_close_file,
.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)
};
static void fio_init fio_filecreate_register(void)