diff options
author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | 2018-08-08 14:02:56 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-08-13 14:22:16 -0400 |
commit | fc9b69710e0e5833c5d3e56c37cb56cfe89217c3 (patch) | |
tree | c72be6b2a2d5d9b5260252838b191b1264f7d3f2 /tools/lib/traceevent/event-plugin.c | |
parent | ece2a4f48386acf7e35a751008976c9dda8d6232 (diff) |
tools lib traceevent, perf tools: Rename traceevent_* APIs
In order to make libtraceevent into a proper library, variables, data
structures and functions require a unique prefix to prevent name space
conflicts. That prefix will be "tep_" and not "traceevent_". This
changes APIs: traceevent_host_bigendian, traceevent_load_plugins and
traceevent_unload_plugins
Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Link: http://lkml.kernel.org/r/20180808180701.484691639@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/traceevent/event-plugin.c')
-rw-r--r-- | tools/lib/traceevent/event-plugin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lib/traceevent/event-plugin.c b/tools/lib/traceevent/event-plugin.c index 8c91c8f0abd9..39859cee7712 100644 --- a/tools/lib/traceevent/event-plugin.c +++ b/tools/lib/traceevent/event-plugin.c | |||
@@ -264,10 +264,10 @@ void traceevent_plugin_remove_options(struct tep_plugin_option *options) | |||
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 |
267 | * @list: The list of plugins (usually returned by traceevent_load_plugins() | 267 | * @list: The list of plugins (usually returned by tep_load_plugins() |
268 | * | 268 | * |
269 | * Writes to the trace_seq @s the list of plugins (files) that is | 269 | * Writes to the trace_seq @s the list of plugins (files) that is |
270 | * returned by traceevent_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 | */ |
273 | void traceevent_print_plugins(struct trace_seq *s, | 273 | void traceevent_print_plugins(struct trace_seq *s, |
@@ -431,7 +431,7 @@ load_plugins(struct tep_handle *pevent, const char *suffix, | |||
431 | } | 431 | } |
432 | 432 | ||
433 | struct plugin_list* | 433 | struct plugin_list* |
434 | traceevent_load_plugins(struct tep_handle *pevent) | 434 | tep_load_plugins(struct tep_handle *pevent) |
435 | { | 435 | { |
436 | struct plugin_list *list = NULL; | 436 | struct plugin_list *list = NULL; |
437 | 437 | ||
@@ -440,7 +440,7 @@ traceevent_load_plugins(struct tep_handle *pevent) | |||
440 | } | 440 | } |
441 | 441 | ||
442 | void | 442 | void |
443 | traceevent_unload_plugins(struct plugin_list *plugin_list, struct tep_handle *pevent) | 443 | tep_unload_plugins(struct plugin_list *plugin_list, struct tep_handle *pevent) |
444 | { | 444 | { |
445 | tep_plugin_unload_func func; | 445 | tep_plugin_unload_func func; |
446 | struct plugin_list *list; | 446 | struct plugin_list *list; |