tools lib traceevent, perf tools: Rename 'enum pevent_flag' to 'enum tep_flag'
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 pevent_get_page_size API and enum pevent_flag to enum tep_flag 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/20180808180701.623942406@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:

committed by
Arnaldo Carvalho de Melo

parent
fc9b69710e
commit
6fed932e92
@@ -1974,7 +1974,7 @@ int cmd_kmem(int argc, const char **argv)
|
||||
goto out_delete;
|
||||
}
|
||||
|
||||
kmem_page_size = pevent_get_page_size(evsel->tp_format->pevent);
|
||||
kmem_page_size = tep_get_page_size(evsel->tp_format->pevent);
|
||||
symbol_conf.use_callchain = true;
|
||||
}
|
||||
|
||||
|
@@ -439,7 +439,7 @@ ssize_t trace_report(int fd, struct trace_event *tevent, bool __repipe)
|
||||
|
||||
pevent = tevent->pevent;
|
||||
|
||||
tep_set_flag(pevent, PEVENT_NSEC_OUTPUT);
|
||||
tep_set_flag(pevent, TEP_NSEC_OUTPUT);
|
||||
tep_set_file_bigendian(pevent, file_bigendian);
|
||||
tep_set_host_bigendian(pevent, host_bigendian);
|
||||
|
||||
|
@@ -47,7 +47,7 @@ static int trace_event__init2(void)
|
||||
return -1;
|
||||
|
||||
pevent = tevent.pevent;
|
||||
tep_set_flag(pevent, PEVENT_NSEC_OUTPUT);
|
||||
tep_set_flag(pevent, TEP_NSEC_OUTPUT);
|
||||
tep_set_file_bigendian(pevent, be);
|
||||
tep_set_host_bigendian(pevent, be);
|
||||
tevent_initialized = true;
|
||||
|
Reference in New Issue
Block a user