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.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/lib/traceevent/event-plugin.c b/tools/lib/traceevent/event-plugin.c
index ec16a103c0cc..46eb64eb0c2e 100644
--- a/tools/lib/traceevent/event-plugin.c
+++ b/tools/lib/traceevent/event-plugin.c
@@ -31,8 +31,8 @@ static struct trace_plugin_options {
31 char *value; 31 char *value;
32} *trace_plugin_options; 32} *trace_plugin_options;
33 33
34struct plugin_list { 34struct tep_plugin_list {
35 struct plugin_list *next; 35 struct tep_plugin_list *next;
36 char *name; 36 char *name;
37 void *handle; 37 void *handle;
38}; 38};
@@ -259,7 +259,7 @@ void tep_plugin_remove_options(struct tep_plugin_option *options)
259 */ 259 */
260void tep_print_plugins(struct trace_seq *s, 260void tep_print_plugins(struct trace_seq *s,
261 const char *prefix, const char *suffix, 261 const char *prefix, const char *suffix,
262 const struct plugin_list *list) 262 const struct tep_plugin_list *list)
263{ 263{
264 while (list) { 264 while (list) {
265 trace_seq_printf(s, "%s%s%s", prefix, list->name, suffix); 265 trace_seq_printf(s, "%s%s%s", prefix, list->name, suffix);
@@ -271,9 +271,9 @@ static void
271load_plugin(struct tep_handle *pevent, const char *path, 271load_plugin(struct tep_handle *pevent, const char *path,
272 const char *file, void *data) 272 const char *file, void *data)
273{ 273{
274 struct plugin_list **plugin_list = data; 274 struct tep_plugin_list **plugin_list = data;
275 tep_plugin_load_func func; 275 tep_plugin_load_func func;
276 struct plugin_list *list; 276 struct tep_plugin_list *list;
277 const char *alias; 277 const char *alias;
278 char *plugin; 278 char *plugin;
279 void *handle; 279 void *handle;
@@ -417,20 +417,20 @@ load_plugins(struct tep_handle *pevent, const char *suffix,
417 free(path); 417 free(path);
418} 418}
419 419
420struct plugin_list* 420struct tep_plugin_list*
421tep_load_plugins(struct tep_handle *pevent) 421tep_load_plugins(struct tep_handle *pevent)
422{ 422{
423 struct plugin_list *list = NULL; 423 struct tep_plugin_list *list = NULL;
424 424
425 load_plugins(pevent, ".so", load_plugin, &list); 425 load_plugins(pevent, ".so", load_plugin, &list);
426 return list; 426 return list;
427} 427}
428 428
429void 429void
430tep_unload_plugins(struct plugin_list *plugin_list, struct tep_handle *pevent) 430tep_unload_plugins(struct tep_plugin_list *plugin_list, struct tep_handle *pevent)
431{ 431{
432 tep_plugin_unload_func func; 432 tep_plugin_unload_func func;
433 struct plugin_list *list; 433 struct tep_plugin_list *list;
434 434
435 while (plugin_list) { 435 while (plugin_list) {
436 list = plugin_list; 436 list = plugin_list;