blob: 8ea77d9b6537a2c54897cd8ffee751ef42344bb3 [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 Axboe79d16312010-03-04 12:43:20 +01009 int flags;
10
Jens Axboe2363d8d2010-03-04 14:30:02 +010011 /*
12 * Profile specific options
13 */
Jens Axboee2de69d2010-03-04 14:05:48 +010014 struct fio_option *options;
Jens Axboe2363d8d2010-03-04 14:30:02 +010015
16 /*
17 * Called after parsing options, to prepare 'cmdline'
18 */
19 void (*prep_cmd)(void);
20
21 /*
22 * The complete command line
23 */
24 const char **cmdline;
Jens Axboe79d16312010-03-04 12:43:20 +010025};
26
27void register_profile(struct profile_ops *);
28void unregister_profile(struct profile_ops *);
29int load_profile(const char *);
30
31#endif