Lines Matching refs:op
61 static int update_option_value(struct pevent_plugin_option *op, const char *val) in update_option_value() argument
67 if (op->value) in update_option_value()
70 op->set ^= 1; in update_option_value()
78 if (op->value) { in update_option_value()
79 op->value = val; in update_option_value()
91 op->set = 1; in update_option_value()
93 op->set = 0; in update_option_value()
114 struct pevent_plugin_option *op; in traceevent_plugin_list_options() local
120 for (op = reg->options; op->name; op++) { in traceevent_plugin_list_options()
121 char *alias = op->plugin_alias ? op->plugin_alias : op->file; in traceevent_plugin_list_options()
124 name = malloc(strlen(op->name) + strlen(alias) + 2); in traceevent_plugin_list_options()
128 sprintf(name, "%s:%s", alias, op->name); in traceevent_plugin_list_options()
168 struct trace_plugin_options *op; in update_option() local
187 for (op = trace_plugin_options; op; op = op->next) { in update_option()
188 if (!op->plugin) in update_option()
190 if (strcmp(op->plugin, plugin) != 0) in update_option()
192 if (strcmp(op->option, option->name) != 0) in update_option()
195 ret = update_option_value(option, op->value); in update_option()
202 for (op = trace_plugin_options; op; op = op->next) { in update_option()
203 if (op->plugin) in update_option()
205 if (strcmp(op->option, option->name) != 0) in update_option()
208 ret = update_option_value(option, op->value); in update_option()