aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-parse.c
diff options
context:
space:
mode:
authorTzvetomir Stoyanov <tstoyanov@vmware.com>2018-11-30 23:08:13 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-01-08 11:28:13 -0500
commit9231967e2f515fce9e19687c0c40dfda416b3512 (patch)
treee2f8e7d87e7ac60f952238ccb4180d3ec42b0a2f /tools/lib/traceevent/event-parse.c
parent4104e604277016b3e6a7d120368054f9d2716953 (diff)
tools lib traceevent: Remove tep_data_event_from_type() API
In order to make libtraceevent into a proper library, its API should be straightforward. After discussion with Steven Rostedt, we decided to remove the tep_data_event_from_type() API and to replace it with tep_find_event(), as it does the same. 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://lkml.kernel.org/r/20181201040852.913841066@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/event-parse.c')
-rw-r--r--tools/lib/traceevent/event-parse.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 54d94054eef0..abd4fa5d3088 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -5266,18 +5266,6 @@ int tep_data_type(struct tep_handle *pevent, struct tep_record *rec)
5266} 5266}
5267 5267
5268/** 5268/**
5269 * tep_data_event_from_type - find the event by a given type
5270 * @pevent: a handle to the pevent
5271 * @type: the type of the event.
5272 *
5273 * This returns the event form a given @type;
5274 */
5275struct tep_event *tep_data_event_from_type(struct tep_handle *pevent, int type)
5276{
5277 return tep_find_event(pevent, type);
5278}
5279
5280/**
5281 * tep_data_pid - parse the PID from record 5269 * tep_data_pid - parse the PID from record
5282 * @pevent: a handle to the pevent 5270 * @pevent: a handle to the pevent
5283 * @rec: the record to parse 5271 * @rec: the record to parse