Lines Matching refs:ops

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