blob: 1185006755ee05895b903eac02e563257f5f9107 [file] [log] [blame]
Jens Axboe79d16312010-03-04 12:43:20 +01001#ifndef FIO_PROFILE_H
2#define FIO_PROFILE_H
3
4#include "flist.h"
5
Jens Axboe79d16312010-03-04 12:43:20 +01006struct profile_ops {
7 struct flist_head list;
8 char name[32];
Jens Axboee58eb862010-03-05 09:56:32 +01009 char desc[64];
Jens Axboe79d16312010-03-04 12:43:20 +010010 int flags;
11
Jens Axboe2363d8d2010-03-04 14:30:02 +010012 /*
13 * Profile specific options
14 */
Jens Axboee2de69d2010-03-04 14:05:48 +010015 struct fio_option *options;
Jens Axboe2363d8d2010-03-04 14:30:02 +010016
17 /*
18 * Called after parsing options, to prepare 'cmdline'
19 */
20 void (*prep_cmd)(void);
21
22 /*
23 * The complete command line
24 */
25 const char **cmdline;
Jens Axboe79d16312010-03-04 12:43:20 +010026};
27
Jens Axboe07b32322010-03-05 09:48:44 +010028int register_profile(struct profile_ops *);
Jens Axboe79d16312010-03-04 12:43:20 +010029void unregister_profile(struct profile_ops *);
30int load_profile(const char *);
31
32#endif