mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
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>
This commit is contained in:
parent
4104e60427
commit
9231967e2f
2 changed files with 0 additions and 13 deletions
|
@ -5265,18 +5265,6 @@ int tep_data_type(struct tep_handle *pevent, struct tep_record *rec)
|
||||||
return trace_parse_common_type(pevent, rec->data);
|
return trace_parse_common_type(pevent, rec->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* tep_data_event_from_type - find the event by a given type
|
|
||||||
* @pevent: a handle to the pevent
|
|
||||||
* @type: the type of the event.
|
|
||||||
*
|
|
||||||
* This returns the event form a given @type;
|
|
||||||
*/
|
|
||||||
struct tep_event *tep_data_event_from_type(struct tep_handle *pevent, int type)
|
|
||||||
{
|
|
||||||
return tep_find_event(pevent, type);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tep_data_pid - parse the PID from record
|
* tep_data_pid - parse the PID from record
|
||||||
* @pevent: a handle to the pevent
|
* @pevent: a handle to the pevent
|
||||||
|
|
|
@ -526,7 +526,6 @@ tep_find_event_by_record(struct tep_handle *pevent, struct tep_record *record);
|
||||||
void tep_data_lat_fmt(struct tep_handle *pevent,
|
void tep_data_lat_fmt(struct tep_handle *pevent,
|
||||||
struct trace_seq *s, struct tep_record *record);
|
struct trace_seq *s, struct tep_record *record);
|
||||||
int tep_data_type(struct tep_handle *pevent, struct tep_record *rec);
|
int tep_data_type(struct tep_handle *pevent, struct tep_record *rec);
|
||||||
struct tep_event *tep_data_event_from_type(struct tep_handle *pevent, int type);
|
|
||||||
int tep_data_pid(struct tep_handle *pevent, struct tep_record *rec);
|
int tep_data_pid(struct tep_handle *pevent, struct tep_record *rec);
|
||||||
int tep_data_preempt_count(struct tep_handle *pevent, struct tep_record *rec);
|
int tep_data_preempt_count(struct tep_handle *pevent, struct tep_record *rec);
|
||||||
int tep_data_flags(struct tep_handle *pevent, struct tep_record *rec);
|
int tep_data_flags(struct tep_handle *pevent, struct tep_record *rec);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue