X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=1666612a9bf6dbe121e1c8a87c682e61786af228;hp=a71357c67ddce9002b97f5d1afa4749a1e49100d;hb=2eaa41cee91925db713b19ea2975dcc511648b48;hpb=5f350952eff89948bfbf1eb6ac4d3d08a9109581 diff --git a/ioengines.c b/ioengines.c index a71357c6..1666612a 100644 --- a/ioengines.c +++ b/ioengines.c @@ -98,6 +98,10 @@ static struct ioengine_ops *dlopen_ioengine(struct thread_data *td, return NULL; } + /* + * Unlike the included modules, external engines should have a + * non-static ioengine structure that we can reference. + */ ops = dlsym(dlhandle, "ioengine"); if (!ops) { td_vmsg(td, -1, dlerror()); @@ -172,7 +176,7 @@ int td_io_getevents(struct thread_data *td, int min, int max, int td_io_queue(struct thread_data *td, struct io_u *io_u) { - gettimeofday(&io_u->issue_time, NULL); + fio_gettime(&io_u->issue_time, NULL); return td->io_ops->queue(td, io_u); }