| 1 | #ifndef FIO_PROFILE_H |
| 2 | #define FIO_PROFILE_H |
| 3 | |
| 4 | #include "flist.h" |
| 5 | |
| 6 | struct profile_ops { |
| 7 | struct flist_head list; |
| 8 | char name[32]; |
| 9 | int flags; |
| 10 | |
| 11 | /* |
| 12 | * Profile specific options |
| 13 | */ |
| 14 | struct fio_option *options; |
| 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; |
| 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 |