From 79d16311c8d0c7188d73df77838fb1b4b6ff58db Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 4 Mar 2010 12:43:20 +0100 Subject: Add support for loadable profiles Split the only existing profile, tiobench, into this setup. Signed-off-by: Jens Axboe --- profile.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 profile.h (limited to 'profile.h') 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 -- cgit v1.2.3