tools lib traceevent, perf tools: Rename pevent find 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
APIs: pevent_find_any_field, pevent_find_common_field,
pevent_find_event, pevent_find_field

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.316995920@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Tzvetomir Stoyanov (VMware) 2018-08-08 14:02:50 -04:00 committed by Arnaldo Carvalho de Melo
parent 4d5c58b15c
commit af85cd1952
12 changed files with 57 additions and 57 deletions

View file

@ -41,7 +41,7 @@ static int get_common_field(struct scripting_context *context,
return 0;
event = pevent->events[0];
field = pevent_find_common_field(event, type);
field = tep_find_common_field(event, type);
if (!field)
return 0;
*offset = field->offset;
@ -99,7 +99,7 @@ raw_field_value(struct event_format *event, const char *name, void *data)
struct format_field *field;
unsigned long long val;
field = pevent_find_any_field(event, name);
field = tep_find_any_field(event, name);
if (!field)
return 0ULL;