diff options
author | Tzvetomir Stoyanov <tstoyanov@vmware.com> | 2019-04-01 12:43:17 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-04-01 14:18:09 -0400 |
commit | 047ff221e3ab07129a3566683e95a4d142f7c3c0 (patch) | |
tree | a2b418b16093087103167f39dea31fede2c2cb18 /tools/lib/traceevent/plugin_function.c | |
parent | 55c34ae076f62ed7ad0fc86cd8b697a6f577c431 (diff) |
tools lib traceevent: Rename input arguments of libtraceevent APIs from pevent to tep
Input arguments of libtraceevent APIs are renamed from "struct
tep_handle *pevent" to "struct tep_handle *tep". This makes the API
consistent with the chosen naming convention: tep (trace event parser),
instead of the old pevent.
Signed-off-by: Tzvetomir Stoyanov <tstoyanov@vmware.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lore.kernel.org/linux-trace-devel/20190401132111.13727-2-tstoyanov@vmware.com
Link: http://lkml.kernel.org/r/20190401164344.465573837@goodmis.org
Signed-off-by: Steven Rostedt (VMware) <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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lib/traceevent/plugin_function.c b/tools/lib/traceevent/plugin_function.c index a73eca34a8f9..e93f33bd705f 100644 --- a/tools/lib/traceevent/plugin_function.c +++ b/tools/lib/traceevent/plugin_function.c | |||
@@ -164,9 +164,9 @@ static int function_handler(struct trace_seq *s, struct tep_record *record, | |||
164 | return 0; | 164 | return 0; |
165 | } | 165 | } |
166 | 166 | ||
167 | int TEP_PLUGIN_LOADER(struct tep_handle *pevent) | 167 | int TEP_PLUGIN_LOADER(struct tep_handle *tep) |
168 | { | 168 | { |
169 | tep_register_event_handler(pevent, -1, "ftrace", "function", | 169 | tep_register_event_handler(tep, -1, "ftrace", "function", |
170 | function_handler, NULL); | 170 | function_handler, NULL); |
171 | 171 | ||
172 | tep_plugin_add_options("ftrace", plugin_options); | 172 | tep_plugin_add_options("ftrace", plugin_options); |
@@ -174,11 +174,11 @@ int TEP_PLUGIN_LOADER(struct tep_handle *pevent) | |||
174 | return 0; | 174 | return 0; |
175 | } | 175 | } |
176 | 176 | ||
177 | void TEP_PLUGIN_UNLOADER(struct tep_handle *pevent) | 177 | void TEP_PLUGIN_UNLOADER(struct tep_handle *tep) |
178 | { | 178 | { |
179 | int i, x; | 179 | int i, x; |
180 | 180 | ||
181 | tep_unregister_event_handler(pevent, -1, "ftrace", "function", | 181 | tep_unregister_event_handler(tep, -1, "ftrace", "function", |
182 | function_handler, NULL); | 182 | function_handler, NULL); |
183 | 183 | ||
184 | for (i = 0; i <= cpus; i++) { | 184 | for (i = 0; i <= cpus; i++) { |