Make profile io op overrides a dedicated structure
[fio.git] / profile.h
index 3bae5002c469a27782b911e83227b939f389fe9f..a54f072455928713f9b6149ca13b461ae028be67 100644 (file)
--- a/profile.h
+++ b/profile.h
@@ -3,6 +3,15 @@
 
 #include "flist.h"
 
+/*
+ * Functions for overriding internal fio io_u functions
+ */
+struct prof_io_ops {
+       int (*fill_io_u_off)(struct thread_data *, struct io_u *);
+       int (*fill_io_u_size)(struct thread_data *, struct io_u *);
+       struct fio_file *(*get_next_file)(struct thread_data *);
+};
+
 struct profile_ops {
        struct flist_head list;
        char name[32];
@@ -24,11 +33,7 @@ struct profile_ops {
         */
        const char **cmdline;
 
-       /*
-        * Functions for overriding internal fio io_u functions
-        */
-       int (*fill_io_u_off)(struct thread_data *, struct io_u *);
-       int (*fill_io_u_size)(struct thread_data *, struct io_u *);
+       struct prof_io_ops *io_ops;
 };
 
 int register_profile(struct profile_ops *);