diff options
author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | 2018-08-08 14:02:48 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-08-13 14:21:39 -0400 |
commit | c32d52b4641d3c7b2569b3fe148bf687e5c61888 (patch) | |
tree | f727c206ed4d9b75541bf31c3233df15393cfab4 /tools/lib | |
parent | cbc49b25b9cf26bf8c91169085be27382d945dd7 (diff) |
tools lib traceevent, perf tools: Rename pevent plugin related 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 "pevent_". This changes
the pevent plugin related API.
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/20180808180700.005287044@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')
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 8 | ||||
-rw-r--r-- | tools/lib/traceevent/event-parse.h | 56 | ||||
-rw-r--r-- | tools/lib/traceevent/event-plugin.c | 24 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_cfg80211.c | 4 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_function.c | 10 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_hrtimer.c | 4 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_jbd2.c | 4 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_kmem.c | 4 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_kvm.c | 4 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_mac80211.c | 4 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_sched_switch.c | 4 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_scsi.c | 4 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_xen.c | 4 |
13 files changed, 67 insertions, 67 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 90f30f9dde14..57ed9348d1aa 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
@@ -88,7 +88,7 @@ struct event_handler { | |||
88 | int id; | 88 | int id; |
89 | const char *sys_name; | 89 | const char *sys_name; |
90 | const char *event_name; | 90 | const char *event_name; |
91 | pevent_event_handler_func func; | 91 | tep_event_handler_func func; |
92 | void *context; | 92 | void *context; |
93 | }; | 93 | }; |
94 | 94 | ||
@@ -6633,7 +6633,7 @@ static struct event_format *pevent_search_event(struct tep_handle *pevent, int i | |||
6633 | */ | 6633 | */ |
6634 | int pevent_register_event_handler(struct tep_handle *pevent, int id, | 6634 | int pevent_register_event_handler(struct tep_handle *pevent, int id, |
6635 | const char *sys_name, const char *event_name, | 6635 | const char *sys_name, const char *event_name, |
6636 | pevent_event_handler_func func, void *context) | 6636 | tep_event_handler_func func, void *context) |
6637 | { | 6637 | { |
6638 | struct event_format *event; | 6638 | struct event_format *event; |
6639 | struct event_handler *handle; | 6639 | struct event_handler *handle; |
@@ -6682,7 +6682,7 @@ int pevent_register_event_handler(struct tep_handle *pevent, int id, | |||
6682 | 6682 | ||
6683 | static int handle_matches(struct event_handler *handler, int id, | 6683 | static int handle_matches(struct event_handler *handler, int id, |
6684 | const char *sys_name, const char *event_name, | 6684 | const char *sys_name, const char *event_name, |
6685 | pevent_event_handler_func func, void *context) | 6685 | tep_event_handler_func func, void *context) |
6686 | { | 6686 | { |
6687 | if (id >= 0 && id != handler->id) | 6687 | if (id >= 0 && id != handler->id) |
6688 | return 0; | 6688 | return 0; |
@@ -6717,7 +6717,7 @@ static int handle_matches(struct event_handler *handler, int id, | |||
6717 | */ | 6717 | */ |
6718 | int pevent_unregister_event_handler(struct tep_handle *pevent, int id, | 6718 | int pevent_unregister_event_handler(struct tep_handle *pevent, int id, |
6719 | const char *sys_name, const char *event_name, | 6719 | const char *sys_name, const char *event_name, |
6720 | pevent_event_handler_func func, void *context) | 6720 | tep_event_handler_func func, void *context) |
6721 | { | 6721 | { |
6722 | struct event_format *event; | 6722 | struct event_format *event; |
6723 | struct event_handler *handle; | 6723 | struct event_handler *handle; |
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index b1e4d37bedd8..b4b698c3833e 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h | |||
@@ -101,16 +101,16 @@ extern int trace_seq_do_printf(struct trace_seq *s); | |||
101 | struct tep_handle; | 101 | struct tep_handle; |
102 | struct event_format; | 102 | struct event_format; |
103 | 103 | ||
104 | typedef int (*pevent_event_handler_func)(struct trace_seq *s, | 104 | typedef int (*tep_event_handler_func)(struct trace_seq *s, |
105 | struct tep_record *record, | 105 | struct tep_record *record, |
106 | struct event_format *event, | 106 | struct event_format *event, |
107 | void *context); | 107 | void *context); |
108 | 108 | ||
109 | typedef int (*pevent_plugin_load_func)(struct tep_handle *pevent); | 109 | typedef int (*tep_plugin_load_func)(struct tep_handle *pevent); |
110 | typedef int (*pevent_plugin_unload_func)(struct tep_handle *pevent); | 110 | typedef int (*tep_plugin_unload_func)(struct tep_handle *pevent); |
111 | 111 | ||
112 | struct pevent_plugin_option { | 112 | struct tep_plugin_option { |
113 | struct pevent_plugin_option *next; | 113 | struct tep_plugin_option *next; |
114 | void *handle; | 114 | void *handle; |
115 | char *file; | 115 | char *file; |
116 | char *name; | 116 | char *name; |
@@ -124,20 +124,20 @@ struct pevent_plugin_option { | |||
124 | /* | 124 | /* |
125 | * Plugin hooks that can be called: | 125 | * Plugin hooks that can be called: |
126 | * | 126 | * |
127 | * PEVENT_PLUGIN_LOADER: (required) | 127 | * TEP_PLUGIN_LOADER: (required) |
128 | * The function name to initialized the plugin. | 128 | * The function name to initialized the plugin. |
129 | * | 129 | * |
130 | * int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | 130 | * int TEP_PLUGIN_LOADER(struct tep_handle *pevent) |
131 | * | 131 | * |
132 | * PEVENT_PLUGIN_UNLOADER: (optional) | 132 | * TEP_PLUGIN_UNLOADER: (optional) |
133 | * The function called just before unloading | 133 | * The function called just before unloading |
134 | * | 134 | * |
135 | * int PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) | 135 | * int TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) |
136 | * | 136 | * |
137 | * PEVENT_PLUGIN_OPTIONS: (optional) | 137 | * TEP_PLUGIN_OPTIONS: (optional) |
138 | * Plugin options that can be set before loading | 138 | * Plugin options that can be set before loading |
139 | * | 139 | * |
140 | * struct pevent_plugin_option PEVENT_PLUGIN_OPTIONS[] = { | 140 | * struct tep_plugin_option TEP_PLUGIN_OPTIONS[] = { |
141 | * { | 141 | * { |
142 | * .name = "option-name", | 142 | * .name = "option-name", |
143 | * .plugin_alias = "override-file-name", (optional) | 143 | * .plugin_alias = "override-file-name", (optional) |
@@ -158,19 +158,19 @@ struct pevent_plugin_option { | |||
158 | * .set will be processed. If .value is defined, then it is considered | 158 | * .set will be processed. If .value is defined, then it is considered |
159 | * a string option and .set will be ignored. | 159 | * a string option and .set will be ignored. |
160 | * | 160 | * |
161 | * PEVENT_PLUGIN_ALIAS: (optional) | 161 | * TEP_PLUGIN_ALIAS: (optional) |
162 | * The name to use for finding options (uses filename if not defined) | 162 | * The name to use for finding options (uses filename if not defined) |
163 | */ | 163 | */ |
164 | #define PEVENT_PLUGIN_LOADER pevent_plugin_loader | 164 | #define TEP_PLUGIN_LOADER tep_plugin_loader |
165 | #define PEVENT_PLUGIN_UNLOADER pevent_plugin_unloader | 165 | #define TEP_PLUGIN_UNLOADER tep_plugin_unloader |
166 | #define PEVENT_PLUGIN_OPTIONS pevent_plugin_options | 166 | #define TEP_PLUGIN_OPTIONS tep_plugin_options |
167 | #define PEVENT_PLUGIN_ALIAS pevent_plugin_alias | 167 | #define TEP_PLUGIN_ALIAS tep_plugin_alias |
168 | #define _MAKE_STR(x) #x | 168 | #define _MAKE_STR(x) #x |
169 | #define MAKE_STR(x) _MAKE_STR(x) | 169 | #define MAKE_STR(x) _MAKE_STR(x) |
170 | #define PEVENT_PLUGIN_LOADER_NAME MAKE_STR(PEVENT_PLUGIN_LOADER) | 170 | #define TEP_PLUGIN_LOADER_NAME MAKE_STR(TEP_PLUGIN_LOADER) |
171 | #define PEVENT_PLUGIN_UNLOADER_NAME MAKE_STR(PEVENT_PLUGIN_UNLOADER) | 171 | #define TEP_PLUGIN_UNLOADER_NAME MAKE_STR(TEP_PLUGIN_UNLOADER) |
172 | #define PEVENT_PLUGIN_OPTIONS_NAME MAKE_STR(PEVENT_PLUGIN_OPTIONS) | 172 | #define TEP_PLUGIN_OPTIONS_NAME MAKE_STR(TEP_PLUGIN_OPTIONS) |
173 | #define PEVENT_PLUGIN_ALIAS_NAME MAKE_STR(PEVENT_PLUGIN_ALIAS) | 173 | #define TEP_PLUGIN_ALIAS_NAME MAKE_STR(TEP_PLUGIN_ALIAS) |
174 | 174 | ||
175 | enum format_flags { | 175 | enum format_flags { |
176 | FIELD_IS_ARRAY = 1, | 176 | FIELD_IS_ARRAY = 1, |
@@ -327,7 +327,7 @@ struct event_format { | |||
327 | struct format format; | 327 | struct format format; |
328 | struct print_fmt print_fmt; | 328 | struct print_fmt print_fmt; |
329 | char *system; | 329 | char *system; |
330 | pevent_event_handler_func handler; | 330 | tep_event_handler_func handler; |
331 | void *context; | 331 | void *context; |
332 | }; | 332 | }; |
333 | 333 | ||
@@ -441,8 +441,8 @@ void traceevent_unload_plugins(struct plugin_list *plugin_list, | |||
441 | char **traceevent_plugin_list_options(void); | 441 | char **traceevent_plugin_list_options(void); |
442 | void traceevent_plugin_free_options_list(char **list); | 442 | void traceevent_plugin_free_options_list(char **list); |
443 | int traceevent_plugin_add_options(const char *name, | 443 | int traceevent_plugin_add_options(const char *name, |
444 | struct pevent_plugin_option *options); | 444 | struct tep_plugin_option *options); |
445 | void traceevent_plugin_remove_options(struct pevent_plugin_option *options); | 445 | void traceevent_plugin_remove_options(struct tep_plugin_option *options); |
446 | void traceevent_print_plugins(struct trace_seq *s, | 446 | void traceevent_print_plugins(struct trace_seq *s, |
447 | const char *prefix, const char *suffix, | 447 | const char *prefix, const char *suffix, |
448 | const struct plugin_list *list); | 448 | const struct plugin_list *list); |
@@ -675,10 +675,10 @@ int pevent_print_func_field(struct trace_seq *s, const char *fmt, | |||
675 | 675 | ||
676 | int pevent_register_event_handler(struct tep_handle *pevent, int id, | 676 | int pevent_register_event_handler(struct tep_handle *pevent, int id, |
677 | const char *sys_name, const char *event_name, | 677 | const char *sys_name, const char *event_name, |
678 | pevent_event_handler_func func, void *context); | 678 | tep_event_handler_func func, void *context); |
679 | int pevent_unregister_event_handler(struct tep_handle *pevent, int id, | 679 | int pevent_unregister_event_handler(struct tep_handle *pevent, int id, |
680 | const char *sys_name, const char *event_name, | 680 | const char *sys_name, const char *event_name, |
681 | pevent_event_handler_func func, void *context); | 681 | tep_event_handler_func func, void *context); |
682 | int pevent_register_print_function(struct tep_handle *pevent, | 682 | int pevent_register_print_function(struct tep_handle *pevent, |
683 | pevent_func_handler func, | 683 | pevent_func_handler func, |
684 | enum pevent_func_arg_type ret_type, | 684 | enum pevent_func_arg_type ret_type, |
diff --git a/tools/lib/traceevent/event-plugin.c b/tools/lib/traceevent/event-plugin.c index 62b011ae18c1..8c91c8f0abd9 100644 --- a/tools/lib/traceevent/event-plugin.c +++ b/tools/lib/traceevent/event-plugin.c | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | static struct registered_plugin_options { | 35 | static struct registered_plugin_options { |
36 | struct registered_plugin_options *next; | 36 | struct registered_plugin_options *next; |
37 | struct pevent_plugin_option *options; | 37 | struct tep_plugin_option *options; |
38 | } *registered_options; | 38 | } *registered_options; |
39 | 39 | ||
40 | static struct trace_plugin_options { | 40 | static struct trace_plugin_options { |
@@ -58,7 +58,7 @@ static void lower_case(char *str) | |||
58 | *str = tolower(*str); | 58 | *str = tolower(*str); |
59 | } | 59 | } |
60 | 60 | ||
61 | static int update_option_value(struct pevent_plugin_option *op, const char *val) | 61 | static int update_option_value(struct tep_plugin_option *op, const char *val) |
62 | { | 62 | { |
63 | char *op_val; | 63 | char *op_val; |
64 | 64 | ||
@@ -111,7 +111,7 @@ static int update_option_value(struct pevent_plugin_option *op, const char *val) | |||
111 | char **traceevent_plugin_list_options(void) | 111 | char **traceevent_plugin_list_options(void) |
112 | { | 112 | { |
113 | struct registered_plugin_options *reg; | 113 | struct registered_plugin_options *reg; |
114 | struct pevent_plugin_option *op; | 114 | struct tep_plugin_option *op; |
115 | char **list = NULL; | 115 | char **list = NULL; |
116 | char *name; | 116 | char *name; |
117 | int count = 0; | 117 | int count = 0; |
@@ -163,7 +163,7 @@ void traceevent_plugin_free_options_list(char **list) | |||
163 | } | 163 | } |
164 | 164 | ||
165 | static int | 165 | static int |
166 | update_option(const char *file, struct pevent_plugin_option *option) | 166 | update_option(const char *file, struct tep_plugin_option *option) |
167 | { | 167 | { |
168 | struct trace_plugin_options *op; | 168 | struct trace_plugin_options *op; |
169 | char *plugin; | 169 | char *plugin; |
@@ -222,7 +222,7 @@ update_option(const char *file, struct pevent_plugin_option *option) | |||
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 | */ |
224 | int traceevent_plugin_add_options(const char *name, | 224 | int traceevent_plugin_add_options(const char *name, |
225 | struct pevent_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 | ||
@@ -244,7 +244,7 @@ int traceevent_plugin_add_options(const char *name, | |||
244 | * traceevent_plugin_remove_options - remove plugin options that were registered | 244 | * traceevent_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 traceevent_plugin_add_options |
246 | */ | 246 | */ |
247 | void traceevent_plugin_remove_options(struct pevent_plugin_option *options) | 247 | void traceevent_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; |
@@ -285,7 +285,7 @@ load_plugin(struct tep_handle *pevent, const char *path, | |||
285 | const char *file, void *data) | 285 | const char *file, void *data) |
286 | { | 286 | { |
287 | struct plugin_list **plugin_list = data; | 287 | struct plugin_list **plugin_list = data; |
288 | pevent_plugin_load_func func; | 288 | tep_plugin_load_func func; |
289 | struct plugin_list *list; | 289 | struct plugin_list *list; |
290 | const char *alias; | 290 | const char *alias; |
291 | char *plugin; | 291 | char *plugin; |
@@ -305,14 +305,14 @@ load_plugin(struct tep_handle *pevent, const char *path, | |||
305 | goto out_free; | 305 | goto out_free; |
306 | } | 306 | } |
307 | 307 | ||
308 | alias = dlsym(handle, PEVENT_PLUGIN_ALIAS_NAME); | 308 | alias = dlsym(handle, TEP_PLUGIN_ALIAS_NAME); |
309 | if (!alias) | 309 | if (!alias) |
310 | alias = file; | 310 | alias = file; |
311 | 311 | ||
312 | func = dlsym(handle, PEVENT_PLUGIN_LOADER_NAME); | 312 | func = dlsym(handle, TEP_PLUGIN_LOADER_NAME); |
313 | if (!func) { | 313 | if (!func) { |
314 | warning("could not find func '%s' in plugin '%s'\n%s\n", | 314 | warning("could not find func '%s' in plugin '%s'\n%s\n", |
315 | PEVENT_PLUGIN_LOADER_NAME, plugin, dlerror()); | 315 | TEP_PLUGIN_LOADER_NAME, plugin, dlerror()); |
316 | goto out_free; | 316 | goto out_free; |
317 | } | 317 | } |
318 | 318 | ||
@@ -442,13 +442,13 @@ traceevent_load_plugins(struct tep_handle *pevent) | |||
442 | void | 442 | void |
443 | traceevent_unload_plugins(struct plugin_list *plugin_list, struct tep_handle *pevent) | 443 | traceevent_unload_plugins(struct plugin_list *plugin_list, struct tep_handle *pevent) |
444 | { | 444 | { |
445 | pevent_plugin_unload_func func; | 445 | tep_plugin_unload_func func; |
446 | struct plugin_list *list; | 446 | struct plugin_list *list; |
447 | 447 | ||
448 | while (plugin_list) { | 448 | while (plugin_list) { |
449 | list = plugin_list; | 449 | list = plugin_list; |
450 | plugin_list = list->next; | 450 | plugin_list = list->next; |
451 | func = dlsym(list->handle, PEVENT_PLUGIN_UNLOADER_NAME); | 451 | func = dlsym(list->handle, TEP_PLUGIN_UNLOADER_NAME); |
452 | if (func) | 452 | if (func) |
453 | func(pevent); | 453 | func(pevent); |
454 | dlclose(list->handle); | 454 | dlclose(list->handle); |
diff --git a/tools/lib/traceevent/plugin_cfg80211.c b/tools/lib/traceevent/plugin_cfg80211.c index 959d94f1d7f5..c189bbc9fa18 100644 --- a/tools/lib/traceevent/plugin_cfg80211.c +++ b/tools/lib/traceevent/plugin_cfg80211.c | |||
@@ -25,7 +25,7 @@ process___le16_to_cpup(struct trace_seq *s, unsigned long long *args) | |||
25 | return val ? (long long) le16toh(*val) : 0; | 25 | return val ? (long long) le16toh(*val) : 0; |
26 | } | 26 | } |
27 | 27 | ||
28 | int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | 28 | int TEP_PLUGIN_LOADER(struct tep_handle *pevent) |
29 | { | 29 | { |
30 | pevent_register_print_function(pevent, | 30 | pevent_register_print_function(pevent, |
31 | process___le16_to_cpup, | 31 | process___le16_to_cpup, |
@@ -36,7 +36,7 @@ int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | |||
36 | return 0; | 36 | return 0; |
37 | } | 37 | } |
38 | 38 | ||
39 | void PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) | 39 | void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) |
40 | { | 40 | { |
41 | pevent_unregister_print_function(pevent, process___le16_to_cpup, | 41 | pevent_unregister_print_function(pevent, process___le16_to_cpup, |
42 | "__le16_to_cpup"); | 42 | "__le16_to_cpup"); |
diff --git a/tools/lib/traceevent/plugin_function.c b/tools/lib/traceevent/plugin_function.c index 86b5bb9bf22c..342be570ee8c 100644 --- a/tools/lib/traceevent/plugin_function.c +++ b/tools/lib/traceevent/plugin_function.c | |||
@@ -33,7 +33,7 @@ static int cpus = -1; | |||
33 | 33 | ||
34 | #define STK_BLK 10 | 34 | #define STK_BLK 10 |
35 | 35 | ||
36 | struct pevent_plugin_option plugin_options[] = | 36 | struct tep_plugin_option plugin_options[] = |
37 | { | 37 | { |
38 | { | 38 | { |
39 | .name = "parent", | 39 | .name = "parent", |
@@ -53,8 +53,8 @@ struct pevent_plugin_option plugin_options[] = | |||
53 | } | 53 | } |
54 | }; | 54 | }; |
55 | 55 | ||
56 | static struct pevent_plugin_option *ftrace_parent = &plugin_options[0]; | 56 | static struct tep_plugin_option *ftrace_parent = &plugin_options[0]; |
57 | static struct pevent_plugin_option *ftrace_indent = &plugin_options[1]; | 57 | static struct tep_plugin_option *ftrace_indent = &plugin_options[1]; |
58 | 58 | ||
59 | static void add_child(struct func_stack *stack, const char *child, int pos) | 59 | static void add_child(struct func_stack *stack, const char *child, int pos) |
60 | { | 60 | { |
@@ -163,7 +163,7 @@ static int function_handler(struct trace_seq *s, struct tep_record *record, | |||
163 | return 0; | 163 | return 0; |
164 | } | 164 | } |
165 | 165 | ||
166 | int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | 166 | int TEP_PLUGIN_LOADER(struct tep_handle *pevent) |
167 | { | 167 | { |
168 | pevent_register_event_handler(pevent, -1, "ftrace", "function", | 168 | pevent_register_event_handler(pevent, -1, "ftrace", "function", |
169 | function_handler, NULL); | 169 | function_handler, NULL); |
@@ -173,7 +173,7 @@ int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | |||
173 | return 0; | 173 | return 0; |
174 | } | 174 | } |
175 | 175 | ||
176 | void PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) | 176 | void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) |
177 | { | 177 | { |
178 | int i, x; | 178 | int i, x; |
179 | 179 | ||
diff --git a/tools/lib/traceevent/plugin_hrtimer.c b/tools/lib/traceevent/plugin_hrtimer.c index 695e8e1b90e6..5704d56c6f6f 100644 --- a/tools/lib/traceevent/plugin_hrtimer.c +++ b/tools/lib/traceevent/plugin_hrtimer.c | |||
@@ -66,7 +66,7 @@ static int timer_start_handler(struct trace_seq *s, | |||
66 | return 0; | 66 | return 0; |
67 | } | 67 | } |
68 | 68 | ||
69 | int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | 69 | int TEP_PLUGIN_LOADER(struct tep_handle *pevent) |
70 | { | 70 | { |
71 | pevent_register_event_handler(pevent, -1, | 71 | pevent_register_event_handler(pevent, -1, |
72 | "timer", "hrtimer_expire_entry", | 72 | "timer", "hrtimer_expire_entry", |
@@ -77,7 +77,7 @@ int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | |||
77 | return 0; | 77 | return 0; |
78 | } | 78 | } |
79 | 79 | ||
80 | void PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) | 80 | void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) |
81 | { | 81 | { |
82 | pevent_unregister_event_handler(pevent, -1, | 82 | pevent_unregister_event_handler(pevent, -1, |
83 | "timer", "hrtimer_expire_entry", | 83 | "timer", "hrtimer_expire_entry", |
diff --git a/tools/lib/traceevent/plugin_jbd2.c b/tools/lib/traceevent/plugin_jbd2.c index 3909db7043c9..9b88aebb48a9 100644 --- a/tools/lib/traceevent/plugin_jbd2.c +++ b/tools/lib/traceevent/plugin_jbd2.c | |||
@@ -47,7 +47,7 @@ process_jiffies_to_msecs(struct trace_seq *s, unsigned long long *args) | |||
47 | return jiffies; | 47 | return jiffies; |
48 | } | 48 | } |
49 | 49 | ||
50 | int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | 50 | int TEP_PLUGIN_LOADER(struct tep_handle *pevent) |
51 | { | 51 | { |
52 | pevent_register_print_function(pevent, | 52 | pevent_register_print_function(pevent, |
53 | process_jbd2_dev_to_name, | 53 | process_jbd2_dev_to_name, |
@@ -65,7 +65,7 @@ int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | |||
65 | return 0; | 65 | return 0; |
66 | } | 66 | } |
67 | 67 | ||
68 | void PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) | 68 | void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) |
69 | { | 69 | { |
70 | pevent_unregister_print_function(pevent, process_jbd2_dev_to_name, | 70 | pevent_unregister_print_function(pevent, process_jbd2_dev_to_name, |
71 | "jbd2_dev_to_name"); | 71 | "jbd2_dev_to_name"); |
diff --git a/tools/lib/traceevent/plugin_kmem.c b/tools/lib/traceevent/plugin_kmem.c index 46e8e959539e..0a56562d0645 100644 --- a/tools/lib/traceevent/plugin_kmem.c +++ b/tools/lib/traceevent/plugin_kmem.c | |||
@@ -48,7 +48,7 @@ static int call_site_handler(struct trace_seq *s, struct tep_record *record, | |||
48 | return 1; | 48 | return 1; |
49 | } | 49 | } |
50 | 50 | ||
51 | int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | 51 | int TEP_PLUGIN_LOADER(struct tep_handle *pevent) |
52 | { | 52 | { |
53 | pevent_register_event_handler(pevent, -1, "kmem", "kfree", | 53 | pevent_register_event_handler(pevent, -1, "kmem", "kfree", |
54 | call_site_handler, NULL); | 54 | call_site_handler, NULL); |
@@ -71,7 +71,7 @@ int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | |||
71 | return 0; | 71 | return 0; |
72 | } | 72 | } |
73 | 73 | ||
74 | void PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) | 74 | void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) |
75 | { | 75 | { |
76 | pevent_unregister_event_handler(pevent, -1, "kmem", "kfree", | 76 | pevent_unregister_event_handler(pevent, -1, "kmem", "kfree", |
77 | call_site_handler, NULL); | 77 | call_site_handler, NULL); |
diff --git a/tools/lib/traceevent/plugin_kvm.c b/tools/lib/traceevent/plugin_kvm.c index 63420e3a340c..ab5439e0ad87 100644 --- a/tools/lib/traceevent/plugin_kvm.c +++ b/tools/lib/traceevent/plugin_kvm.c | |||
@@ -444,7 +444,7 @@ process_is_writable_pte(struct trace_seq *s, unsigned long long *args) | |||
444 | return pte & PT_WRITABLE_MASK; | 444 | return pte & PT_WRITABLE_MASK; |
445 | } | 445 | } |
446 | 446 | ||
447 | int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | 447 | int TEP_PLUGIN_LOADER(struct tep_handle *pevent) |
448 | { | 448 | { |
449 | init_disassembler(); | 449 | init_disassembler(); |
450 | 450 | ||
@@ -486,7 +486,7 @@ int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | |||
486 | return 0; | 486 | return 0; |
487 | } | 487 | } |
488 | 488 | ||
489 | void PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) | 489 | void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) |
490 | { | 490 | { |
491 | pevent_unregister_event_handler(pevent, -1, "kvm", "kvm_exit", | 491 | pevent_unregister_event_handler(pevent, -1, "kvm", "kvm_exit", |
492 | kvm_exit_handler, NULL); | 492 | kvm_exit_handler, NULL); |
diff --git a/tools/lib/traceevent/plugin_mac80211.c b/tools/lib/traceevent/plugin_mac80211.c index 83d002753251..61eea3543cf1 100644 --- a/tools/lib/traceevent/plugin_mac80211.c +++ b/tools/lib/traceevent/plugin_mac80211.c | |||
@@ -86,7 +86,7 @@ static int drv_bss_info_changed(struct trace_seq *s, | |||
86 | return 0; | 86 | return 0; |
87 | } | 87 | } |
88 | 88 | ||
89 | int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | 89 | int TEP_PLUGIN_LOADER(struct tep_handle *pevent) |
90 | { | 90 | { |
91 | pevent_register_event_handler(pevent, -1, "mac80211", | 91 | pevent_register_event_handler(pevent, -1, "mac80211", |
92 | "drv_bss_info_changed", | 92 | "drv_bss_info_changed", |
@@ -94,7 +94,7 @@ int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | |||
94 | return 0; | 94 | return 0; |
95 | } | 95 | } |
96 | 96 | ||
97 | void PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) | 97 | void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) |
98 | { | 98 | { |
99 | pevent_unregister_event_handler(pevent, -1, "mac80211", | 99 | pevent_unregister_event_handler(pevent, -1, "mac80211", |
100 | "drv_bss_info_changed", | 100 | "drv_bss_info_changed", |
diff --git a/tools/lib/traceevent/plugin_sched_switch.c b/tools/lib/traceevent/plugin_sched_switch.c index b72a52d2fd1d..24dc2bca8e67 100644 --- a/tools/lib/traceevent/plugin_sched_switch.c +++ b/tools/lib/traceevent/plugin_sched_switch.c | |||
@@ -134,7 +134,7 @@ static int sched_switch_handler(struct trace_seq *s, | |||
134 | return 0; | 134 | return 0; |
135 | } | 135 | } |
136 | 136 | ||
137 | int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | 137 | int TEP_PLUGIN_LOADER(struct tep_handle *pevent) |
138 | { | 138 | { |
139 | pevent_register_event_handler(pevent, -1, "sched", "sched_switch", | 139 | pevent_register_event_handler(pevent, -1, "sched", "sched_switch", |
140 | sched_switch_handler, NULL); | 140 | sched_switch_handler, NULL); |
@@ -147,7 +147,7 @@ int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | |||
147 | return 0; | 147 | return 0; |
148 | } | 148 | } |
149 | 149 | ||
150 | void PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) | 150 | void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) |
151 | { | 151 | { |
152 | pevent_unregister_event_handler(pevent, -1, "sched", "sched_switch", | 152 | pevent_unregister_event_handler(pevent, -1, "sched", "sched_switch", |
153 | sched_switch_handler, NULL); | 153 | sched_switch_handler, NULL); |
diff --git a/tools/lib/traceevent/plugin_scsi.c b/tools/lib/traceevent/plugin_scsi.c index e430a49e4995..bb9aea6fb000 100644 --- a/tools/lib/traceevent/plugin_scsi.c +++ b/tools/lib/traceevent/plugin_scsi.c | |||
@@ -413,7 +413,7 @@ unsigned long long process_scsi_trace_parse_cdb(struct trace_seq *s, | |||
413 | return 0; | 413 | return 0; |
414 | } | 414 | } |
415 | 415 | ||
416 | int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | 416 | int TEP_PLUGIN_LOADER(struct tep_handle *pevent) |
417 | { | 417 | { |
418 | pevent_register_print_function(pevent, | 418 | pevent_register_print_function(pevent, |
419 | process_scsi_trace_parse_cdb, | 419 | process_scsi_trace_parse_cdb, |
@@ -426,7 +426,7 @@ int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | |||
426 | return 0; | 426 | return 0; |
427 | } | 427 | } |
428 | 428 | ||
429 | void PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) | 429 | void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) |
430 | { | 430 | { |
431 | pevent_unregister_print_function(pevent, process_scsi_trace_parse_cdb, | 431 | pevent_unregister_print_function(pevent, process_scsi_trace_parse_cdb, |
432 | "scsi_trace_parse_cdb"); | 432 | "scsi_trace_parse_cdb"); |
diff --git a/tools/lib/traceevent/plugin_xen.c b/tools/lib/traceevent/plugin_xen.c index 11dbddde2e6a..1973dd8abbfd 100644 --- a/tools/lib/traceevent/plugin_xen.c +++ b/tools/lib/traceevent/plugin_xen.c | |||
@@ -119,7 +119,7 @@ unsigned long long process_xen_hypercall_name(struct trace_seq *s, | |||
119 | return 0; | 119 | return 0; |
120 | } | 120 | } |
121 | 121 | ||
122 | int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | 122 | int TEP_PLUGIN_LOADER(struct tep_handle *pevent) |
123 | { | 123 | { |
124 | pevent_register_print_function(pevent, | 124 | pevent_register_print_function(pevent, |
125 | process_xen_hypercall_name, | 125 | process_xen_hypercall_name, |
@@ -130,7 +130,7 @@ int PEVENT_PLUGIN_LOADER(struct tep_handle *pevent) | |||
130 | return 0; | 130 | return 0; |
131 | } | 131 | } |
132 | 132 | ||
133 | void PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) | 133 | void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) |
134 | { | 134 | { |
135 | pevent_unregister_print_function(pevent, process_xen_hypercall_name, | 135 | pevent_unregister_print_function(pevent, process_xen_hypercall_name, |
136 | "xen_hypercall_name"); | 136 | "xen_hypercall_name"); |