Home | History | Annotate | Download | only in fio

Lines Matching refs:ops

11 	struct profile_ops *ops = NULL;
15 ops = flist_entry(n, struct profile_ops, list);
16 if (!strcmp(profile, ops->name))
19 ops = NULL;
22 return ops;
27 struct profile_ops *ops;
31 ops = find_profile(profile);
32 if (ops) {
33 if (ops->prep_cmd()) {
37 add_job_opts(ops->cmdline, FIO_CLIENT_TYPE_CLI);
45 static int add_profile_options(struct profile_ops *ops)
49 if (!ops->options)
52 o = ops->options;
54 o->prof_name = ops->name;
55 o->prof_opts = ops->opt_data;
64 int register_profile(struct profile_ops *ops)
68 dprint(FD_PROFILE, "register profile '%s'\n", ops->name);
70 ret = add_profile_options(ops);
72 flist_add_tail(&ops->list, &profile_list);
73 add_opt_posval("profile", ops->name, ops->desc);
77 invalidate_profile_options(ops->name);
81 void unregister_profile(struct profile_ops *ops)
83 dprint(FD_PROFILE, "unregister profile '%s'\n", ops->name);
84 flist_del(&ops->list);
85 invalidate_profile_options(ops->name);
86 del_opt_posval("profile", ops->name);
91 struct profile_ops *ops;
96 ops = find_profile(exec_profile);
97 if (!ops)
100 if (ops->io_ops) {
101 td->prof_io_ops = *ops->io_ops;
108 struct prof_io_ops *ops = &td->prof_io_ops;
110 if (ops->td_init)
111 return ops->td_init(td);
118 struct prof_io_ops *ops = &td->prof_io_ops;
120 if (ops->td_exit)
121 ops->td_exit(td);