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