summaryrefslogtreecommitdiff
path: root/profile.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2010-03-04 12:43:20 +0100
committerJens Axboe <jens.axboe@oracle.com>2010-03-04 12:43:20 +0100
commit79d16311c8d0c7188d73df77838fb1b4b6ff58db (patch)
tree1127c931bac6ece0a99f7c7eaa0e66b2598bc415 /profile.h
parent64d9d938dfae4b5dcdc0c6222d2ad11870617426 (diff)
downloadfio-79d16311c8d0c7188d73df77838fb1b4b6ff58db.tar.gz
Add support for loadable profiles
Split the only existing profile, tiobench, into this setup. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/profile.h b/profile.h
new file mode 100644
index 00000000..6b196062
--- /dev/null
+++ b/profile.h
@@ -0,0 +1,21 @@
+#ifndef FIO_PROFILE_H
+#define FIO_PROFILE_H
+
+#include "flist.h"
+
+#define FIO_PROFILE_VERSION 1
+
+struct profile_ops {
+ struct flist_head list;
+ char name[32];
+ int version;
+ int flags;
+
+ const char **def_ops;
+};
+
+void register_profile(struct profile_ops *);
+void unregister_profile(struct profile_ops *);
+int load_profile(const char *);
+
+#endif