diff options
author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | 2018-08-08 14:02:46 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-08-10 14:29:35 -0400 |
commit | 096177a8b51937ba3004164f0366ef20656bb17a (patch) | |
tree | 8f9d245326e13d27384834528748202898ea42a7 /tools/lib/traceevent/plugin_function.c | |
parent | 354b064b8ebc1e1ede58550ca9e08bfa81e6af43 (diff) |
tools lib traceevent, perf tools: Rename struct pevent to struct tep_handle
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 struct pevent to struct tep_handle.
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/20180808180659.706175783@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/plugin_function.c')
-rw-r--r-- | tools/lib/traceevent/plugin_function.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/traceevent/plugin_function.c b/tools/lib/traceevent/plugin_function.c index 42dbf73758f3..3ed965a8b5f0 100644 --- a/tools/lib/traceevent/plugin_function.c +++ b/tools/lib/traceevent/plugin_function.c | |||
@@ -125,7 +125,7 @@ static int add_and_get_index(const char *parent, const char *child, int cpu) | |||
125 | static int function_handler(struct trace_seq *s, struct pevent_record *record, | 125 | static int function_handler(struct trace_seq *s, struct pevent_record *record, |
126 | struct event_format *event, void *context) | 126 | struct event_format *event, void *context) |
127 | { | 127 | { |
128 | struct pevent *pevent = event->pevent; | 128 | struct tep_handle *pevent = event->pevent; |
129 | unsigned long long function; | 129 | unsigned long long function; |
130 | unsigned long long pfunction; | 130 | unsigned long long pfunction; |
131 | const char *func; | 131 | const char *func; |
@@ -163,7 +163,7 @@ static int function_handler(struct trace_seq *s, struct pevent_record *record, | |||
163 | return 0; | 163 | return 0; |
164 | } | 164 | } |
165 | 165 | ||
166 | int PEVENT_PLUGIN_LOADER(struct pevent *pevent) | 166 | int PEVENT_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 pevent *pevent) | |||
173 | return 0; | 173 | return 0; |
174 | } | 174 | } |
175 | 175 | ||
176 | void PEVENT_PLUGIN_UNLOADER(struct pevent *pevent) | 176 | void PEVENT_PLUGIN_UNLOADER(struct tep_handle *pevent) |
177 | { | 177 | { |
178 | int i, x; | 178 | int i, x; |
179 | 179 | ||