Make profile io op overrides a dedicated structure
[fio.git] / profile.c
index 0e2b97d4a0933896532b4891bd650dcf63c16da0..3ed9127b9007e6a5978ef8008e90b62bd2bac59c 100644 (file)
--- a/profile.c
+++ b/profile.c
@@ -93,6 +93,6 @@ void profile_add_hooks(struct thread_data *td)
        if (!ops)
                return;
 
-       td->fill_io_u_off = ops->fill_io_u_off;
-       td->fill_io_u_size = ops->fill_io_u_size;
+       if (ops->io_ops)
+               td->prof_io_ops = *ops->io_ops;
 }