mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
tools lib traceevent, perf tools: Rename pevent print 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_print_field, pevent_print_fields, pevent_print_funcs, pevent_print_printk Signed-off-by: Tzvetomir Stoyanov (VMware) <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Yordan Karadzhov (VMware) <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Steven Rostedt <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
c60167c187
commit
6a48dc298e
7 changed files with 89 additions and 89 deletions
|
|
@ -610,8 +610,8 @@ static char *get_trace_output(struct hist_entry *he)
|
|||
|
||||
trace_seq_init(&seq);
|
||||
if (symbol_conf.raw_trace) {
|
||||
pevent_print_fields(&seq, he->raw_data, he->raw_size,
|
||||
evsel->tp_format);
|
||||
tep_print_fields(&seq, he->raw_data, he->raw_size,
|
||||
evsel->tp_format);
|
||||
} else {
|
||||
tep_event_info(&seq, evsel->tp_format, &rec);
|
||||
}
|
||||
|
|
@ -2047,7 +2047,7 @@ static int __sort__hde_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
|
|||
struct trace_seq seq;
|
||||
raw_field:
|
||||
trace_seq_init(&seq);
|
||||
pevent_print_field(&seq, he->raw_data, hde->field);
|
||||
tep_print_field(&seq, he->raw_data, hde->field);
|
||||
str = seq.buffer;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -479,9 +479,9 @@ ssize_t trace_report(int fd, struct trace_event *tevent, bool __repipe)
|
|||
repipe = false;
|
||||
|
||||
if (show_funcs) {
|
||||
pevent_print_funcs(pevent);
|
||||
tep_print_funcs(pevent);
|
||||
} else if (show_printk) {
|
||||
pevent_print_printk(pevent);
|
||||
tep_print_printk(pevent);
|
||||
}
|
||||
|
||||
pevent = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue