aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/traceevent/event-plugin.c')
-rw-r--r--tools/lib/traceevent/event-plugin.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/tools/lib/traceevent/event-plugin.c b/tools/lib/traceevent/event-plugin.c
index c837a73c03e6..8e324ed46547 100644
--- a/tools/lib/traceevent/event-plugin.c
+++ b/tools/lib/traceevent/event-plugin.c
@@ -97,7 +97,7 @@ static int update_option_value(struct tep_plugin_option *op, const char *val)
97} 97}
98 98
99/** 99/**
100 * traceevent_plugin_list_options - get list of plugin options 100 * tep_plugin_list_options - get list of plugin options
101 * 101 *
102 * Returns an array of char strings that list the currently registered 102 * Returns an array of char strings that list the currently registered
103 * plugin options in the format of <plugin>:<option>. This list can be 103 * plugin options in the format of <plugin>:<option>. This list can be
@@ -106,9 +106,9 @@ static int update_option_value(struct tep_plugin_option *op, const char *val)
106 * Returns NULL if there's no options registered. On error it returns 106 * Returns NULL if there's no options registered. On error it returns
107 * INVALID_PLUGIN_LIST_OPTION 107 * INVALID_PLUGIN_LIST_OPTION
108 * 108 *
109 * Must be freed with traceevent_plugin_free_options_list(). 109 * Must be freed with tep_plugin_free_options_list().
110 */ 110 */
111char **traceevent_plugin_list_options(void) 111char **tep_plugin_list_options(void)
112{ 112{
113 struct registered_plugin_options *reg; 113 struct registered_plugin_options *reg;
114 struct tep_plugin_option *op; 114 struct tep_plugin_option *op;
@@ -146,7 +146,7 @@ char **traceevent_plugin_list_options(void)
146 return INVALID_PLUGIN_LIST_OPTION; 146 return INVALID_PLUGIN_LIST_OPTION;
147} 147}
148 148
149void traceevent_plugin_free_options_list(char **list) 149void tep_plugin_free_options_list(char **list)
150{ 150{
151 int i; 151 int i;
152 152
@@ -215,14 +215,14 @@ update_option(const char *file, struct tep_plugin_option *option)
215} 215}
216 216
217/** 217/**
218 * traceevent_plugin_add_options - Add a set of options by a plugin 218 * tep_plugin_add_options - Add a set of options by a plugin
219 * @name: The name of the plugin adding the options 219 * @name: The name of the plugin adding the options
220 * @options: The set of options being loaded 220 * @options: The set of options being loaded
221 * 221 *
222 * Sets the options with the values that have been added by user. 222 * Sets the options with the values that have been added by user.
223 */ 223 */
224int traceevent_plugin_add_options(const char *name, 224int tep_plugin_add_options(const char *name,
225 struct tep_plugin_option *options) 225 struct tep_plugin_option *options)
226{ 226{
227 struct registered_plugin_options *reg; 227 struct registered_plugin_options *reg;
228 228
@@ -241,10 +241,10 @@ int traceevent_plugin_add_options(const char *name,
241} 241}
242 242
243/** 243/**
244 * traceevent_plugin_remove_options - remove plugin options that were registered 244 * tep_plugin_remove_options - remove plugin options that were registered
245 * @options: Options to removed that were registered with traceevent_plugin_add_options 245 * @options: Options to removed that were registered with tep_plugin_add_options
246 */ 246 */
247void traceevent_plugin_remove_options(struct tep_plugin_option *options) 247void tep_plugin_remove_options(struct tep_plugin_option *options)
248{ 248{
249 struct registered_plugin_options **last; 249 struct registered_plugin_options **last;
250 struct registered_plugin_options *reg; 250 struct registered_plugin_options *reg;
@@ -260,7 +260,7 @@ void traceevent_plugin_remove_options(struct tep_plugin_option *options)
260} 260}
261 261
262/** 262/**
263 * traceevent_print_plugins - print out the list of plugins loaded 263 * tep_print_plugins - print out the list of plugins loaded
264 * @s: the trace_seq descripter to write to 264 * @s: the trace_seq descripter to write to
265 * @prefix: The prefix string to add before listing the option name 265 * @prefix: The prefix string to add before listing the option name
266 * @suffix: The suffix string ot append after the option name 266 * @suffix: The suffix string ot append after the option name
@@ -270,9 +270,9 @@ void traceevent_plugin_remove_options(struct tep_plugin_option *options)
270 * returned by tep_load_plugins(). Use @prefix and @suffix for formating: 270 * returned by tep_load_plugins(). Use @prefix and @suffix for formating:
271 * @prefix = " ", @suffix = "\n". 271 * @prefix = " ", @suffix = "\n".
272 */ 272 */
273void traceevent_print_plugins(struct trace_seq *s, 273void tep_print_plugins(struct trace_seq *s,
274 const char *prefix, const char *suffix, 274 const char *prefix, const char *suffix,
275 const struct plugin_list *list) 275 const struct plugin_list *list)
276{ 276{
277 while (list) { 277 while (list) {
278 trace_seq_printf(s, "%s%s%s", prefix, list->name, suffix); 278 trace_seq_printf(s, "%s%s%s", prefix, list->name, suffix);