Jens Axboe | 79d1631 | 2010-03-04 12:43:20 +0100 | [diff] [blame] | 1 | #ifndef FIO_PROFILE_H |
| 2 | #define FIO_PROFILE_H |
| 3 | |
| 4 | #include "flist.h" |
| 5 | |
Jens Axboe | 79d1631 | 2010-03-04 12:43:20 +0100 | [diff] [blame] | 6 | struct profile_ops { |
| 7 | struct flist_head list; |
| 8 | char name[32]; |
Jens Axboe | 79d1631 | 2010-03-04 12:43:20 +0100 | [diff] [blame] | 9 | int flags; |
| 10 | |
Jens Axboe | 2363d8d | 2010-03-04 14:30:02 +0100 | [diff] [blame] | 11 | /* |
| 12 | * Profile specific options |
| 13 | */ |
Jens Axboe | e2de69d | 2010-03-04 14:05:48 +0100 | [diff] [blame] | 14 | struct fio_option *options; |
Jens Axboe | 2363d8d | 2010-03-04 14:30:02 +0100 | [diff] [blame] | 15 | |
| 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 Axboe | 79d1631 | 2010-03-04 12:43:20 +0100 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | void register_profile(struct profile_ops *); |
| 28 | void unregister_profile(struct profile_ops *); |
| 29 | int load_profile(const char *); |
| 30 | |
| 31 | #endif |