6 static FLIST_HEAD(profile_list);
8 int load_profile(const char *profile)
10 struct profile_ops *ops;
13 dprint(FD_PROFILE, "loading profile '%s'\n", profile);
15 flist_for_each(n, &profile_list) {
16 ops = flist_entry(n, struct profile_ops, list);
17 if (!strcmp(profile, ops->name))
24 add_job_opts(ops->def_ops);
28 log_err("fio: profile '%s' not found\n", profile);
32 void register_profile(struct profile_ops *ops)
34 dprint(FD_PROFILE, "register profile '%s'\n", ops->name);
35 flist_add_tail(&ops->list, &profile_list);
38 void unregister_profile(struct profile_ops *ops)
40 dprint(FD_PROFILE, "unregister profile '%s'\n", ops->name);
41 flist_del(&ops->list);