diff options
author | Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> | 2018-08-08 14:02:52 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-08-13 14:22:01 -0400 |
commit | 6a48dc298ee1a4d87403086002b25c6821a1abc5 (patch) | |
tree | c332a5bec3b3a5214ebf8b11452e3e0f6b410d22 | |
parent | c60167c187f9255e698998887bfbbba6418861b5 (diff) |
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) <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.654453763@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 74 | ||||
-rw-r--r-- | tools/lib/traceevent/event-parse.h | 44 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_hrtimer.c | 28 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_kvm.c | 16 | ||||
-rw-r--r-- | tools/lib/traceevent/plugin_mac80211.c | 6 | ||||
-rw-r--r-- | tools/perf/util/sort.c | 6 | ||||
-rw-r--r-- | tools/perf/util/trace-event-read.c | 4 |
7 files changed, 89 insertions, 89 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 419e57f5bbf3..2b717c2d65cc 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
@@ -589,12 +589,12 @@ out_free: | |||
589 | } | 589 | } |
590 | 590 | ||
591 | /** | 591 | /** |
592 | * pevent_print_funcs - print out the stored functions | 592 | * tep_print_funcs - print out the stored functions |
593 | * @pevent: handle for the pevent | 593 | * @pevent: handle for the pevent |
594 | * | 594 | * |
595 | * This prints out the stored functions. | 595 | * This prints out the stored functions. |
596 | */ | 596 | */ |
597 | void pevent_print_funcs(struct tep_handle *pevent) | 597 | void tep_print_funcs(struct tep_handle *pevent) |
598 | { | 598 | { |
599 | int i; | 599 | int i; |
600 | 600 | ||
@@ -732,12 +732,12 @@ out_free: | |||
732 | } | 732 | } |
733 | 733 | ||
734 | /** | 734 | /** |
735 | * pevent_print_printk - print out the stored strings | 735 | * tep_print_printk - print out the stored strings |
736 | * @pevent: handle for the pevent | 736 | * @pevent: handle for the pevent |
737 | * | 737 | * |
738 | * This prints the string formats that were stored. | 738 | * This prints the string formats that were stored. |
739 | */ | 739 | */ |
740 | void pevent_print_printk(struct tep_handle *pevent) | 740 | void tep_print_printk(struct tep_handle *pevent) |
741 | { | 741 | { |
742 | int i; | 742 | int i; |
743 | 743 | ||
@@ -4800,8 +4800,8 @@ static int is_printable_array(char *p, unsigned int len) | |||
4800 | return 1; | 4800 | return 1; |
4801 | } | 4801 | } |
4802 | 4802 | ||
4803 | void pevent_print_field(struct trace_seq *s, void *data, | 4803 | void tep_print_field(struct trace_seq *s, void *data, |
4804 | struct format_field *field) | 4804 | struct format_field *field) |
4805 | { | 4805 | { |
4806 | unsigned long long val; | 4806 | unsigned long long val; |
4807 | unsigned int offset, len, i; | 4807 | unsigned int offset, len, i; |
@@ -4865,15 +4865,15 @@ void pevent_print_field(struct trace_seq *s, void *data, | |||
4865 | } | 4865 | } |
4866 | } | 4866 | } |
4867 | 4867 | ||
4868 | void pevent_print_fields(struct trace_seq *s, void *data, | 4868 | void tep_print_fields(struct trace_seq *s, void *data, |
4869 | int size __maybe_unused, struct event_format *event) | 4869 | int size __maybe_unused, struct event_format *event) |
4870 | { | 4870 | { |
4871 | struct format_field *field; | 4871 | struct format_field *field; |
4872 | 4872 | ||
4873 | field = event->format.fields; | 4873 | field = event->format.fields; |
4874 | while (field) { | 4874 | while (field) { |
4875 | trace_seq_printf(s, " %s=", field->name); | 4875 | trace_seq_printf(s, " %s=", field->name); |
4876 | pevent_print_field(s, data, field); | 4876 | tep_print_field(s, data, field); |
4877 | field = field->next; | 4877 | field = field->next; |
4878 | } | 4878 | } |
4879 | } | 4879 | } |
@@ -4899,7 +4899,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event | |||
4899 | 4899 | ||
4900 | if (event->flags & EVENT_FL_FAILED) { | 4900 | if (event->flags & EVENT_FL_FAILED) { |
4901 | trace_seq_printf(s, "[FAILED TO PARSE]"); | 4901 | trace_seq_printf(s, "[FAILED TO PARSE]"); |
4902 | pevent_print_fields(s, data, size, event); | 4902 | tep_print_fields(s, data, size, event); |
4903 | return; | 4903 | return; |
4904 | } | 4904 | } |
4905 | 4905 | ||
@@ -5405,7 +5405,7 @@ void tep_event_info(struct trace_seq *s, struct event_format *event, | |||
5405 | int print_pretty = 1; | 5405 | int print_pretty = 1; |
5406 | 5406 | ||
5407 | if (event->pevent->print_raw || (event->flags & EVENT_FL_PRINTRAW)) | 5407 | if (event->pevent->print_raw || (event->flags & EVENT_FL_PRINTRAW)) |
5408 | pevent_print_fields(s, record->data, record->size, event); | 5408 | tep_print_fields(s, record->data, record->size, event); |
5409 | else { | 5409 | else { |
5410 | 5410 | ||
5411 | if (event->handler && !(event->flags & EVENT_FL_NOHANDLE)) | 5411 | if (event->handler && !(event->flags & EVENT_FL_NOHANDLE)) |
@@ -5456,7 +5456,7 @@ pevent_find_event_by_record(struct tep_handle *pevent, struct tep_record *record | |||
5456 | } | 5456 | } |
5457 | 5457 | ||
5458 | /** | 5458 | /** |
5459 | * pevent_print_event_task - Write the event task comm, pid and CPU | 5459 | * tep_print_event_task - Write the event task comm, pid and CPU |
5460 | * @pevent: a handle to the pevent | 5460 | * @pevent: a handle to the pevent |
5461 | * @s: the trace_seq to write to | 5461 | * @s: the trace_seq to write to |
5462 | * @event: the handle to the record's event | 5462 | * @event: the handle to the record's event |
@@ -5464,9 +5464,9 @@ pevent_find_event_by_record(struct tep_handle *pevent, struct tep_record *record | |||
5464 | * | 5464 | * |
5465 | * Writes the tasks comm, pid and CPU to @s. | 5465 | * Writes the tasks comm, pid and CPU to @s. |
5466 | */ | 5466 | */ |
5467 | void pevent_print_event_task(struct tep_handle *pevent, struct trace_seq *s, | 5467 | void tep_print_event_task(struct tep_handle *pevent, struct trace_seq *s, |
5468 | struct event_format *event, | 5468 | struct event_format *event, |
5469 | struct tep_record *record) | 5469 | struct tep_record *record) |
5470 | { | 5470 | { |
5471 | void *data = record->data; | 5471 | void *data = record->data; |
5472 | const char *comm; | 5472 | const char *comm; |
@@ -5483,7 +5483,7 @@ void pevent_print_event_task(struct tep_handle *pevent, struct trace_seq *s, | |||
5483 | } | 5483 | } |
5484 | 5484 | ||
5485 | /** | 5485 | /** |
5486 | * pevent_print_event_time - Write the event timestamp | 5486 | * tep_print_event_time - Write the event timestamp |
5487 | * @pevent: a handle to the pevent | 5487 | * @pevent: a handle to the pevent |
5488 | * @s: the trace_seq to write to | 5488 | * @s: the trace_seq to write to |
5489 | * @event: the handle to the record's event | 5489 | * @event: the handle to the record's event |
@@ -5492,10 +5492,10 @@ void pevent_print_event_task(struct tep_handle *pevent, struct trace_seq *s, | |||
5492 | * | 5492 | * |
5493 | * Writes the timestamp of the record into @s. | 5493 | * Writes the timestamp of the record into @s. |
5494 | */ | 5494 | */ |
5495 | void pevent_print_event_time(struct tep_handle *pevent, struct trace_seq *s, | 5495 | void tep_print_event_time(struct tep_handle *pevent, struct trace_seq *s, |
5496 | struct event_format *event, | 5496 | struct event_format *event, |
5497 | struct tep_record *record, | 5497 | struct tep_record *record, |
5498 | bool use_trace_clock) | 5498 | bool use_trace_clock) |
5499 | { | 5499 | { |
5500 | unsigned long secs; | 5500 | unsigned long secs; |
5501 | unsigned long usecs; | 5501 | unsigned long usecs; |
@@ -5534,7 +5534,7 @@ void pevent_print_event_time(struct tep_handle *pevent, struct trace_seq *s, | |||
5534 | } | 5534 | } |
5535 | 5535 | ||
5536 | /** | 5536 | /** |
5537 | * pevent_print_event_data - Write the event data section | 5537 | * tep_print_event_data - Write the event data section |
5538 | * @pevent: a handle to the pevent | 5538 | * @pevent: a handle to the pevent |
5539 | * @s: the trace_seq to write to | 5539 | * @s: the trace_seq to write to |
5540 | * @event: the handle to the record's event | 5540 | * @event: the handle to the record's event |
@@ -5542,9 +5542,9 @@ void pevent_print_event_time(struct tep_handle *pevent, struct trace_seq *s, | |||
5542 | * | 5542 | * |
5543 | * Writes the parsing of the record's data to @s. | 5543 | * Writes the parsing of the record's data to @s. |
5544 | */ | 5544 | */ |
5545 | void pevent_print_event_data(struct tep_handle *pevent, struct trace_seq *s, | 5545 | void tep_print_event_data(struct tep_handle *pevent, struct trace_seq *s, |
5546 | struct event_format *event, | 5546 | struct event_format *event, |
5547 | struct tep_record *record) | 5547 | struct tep_record *record) |
5548 | { | 5548 | { |
5549 | static const char *spaces = " "; /* 20 spaces */ | 5549 | static const char *spaces = " "; /* 20 spaces */ |
5550 | int len; | 5550 | int len; |
@@ -5559,8 +5559,8 @@ void pevent_print_event_data(struct tep_handle *pevent, struct trace_seq *s, | |||
5559 | tep_event_info(s, event, record); | 5559 | tep_event_info(s, event, record); |
5560 | } | 5560 | } |
5561 | 5561 | ||
5562 | void pevent_print_event(struct tep_handle *pevent, struct trace_seq *s, | 5562 | void tep_print_event(struct tep_handle *pevent, struct trace_seq *s, |
5563 | struct tep_record *record, bool use_trace_clock) | 5563 | struct tep_record *record, bool use_trace_clock) |
5564 | { | 5564 | { |
5565 | struct event_format *event; | 5565 | struct event_format *event; |
5566 | 5566 | ||
@@ -5577,9 +5577,9 @@ void pevent_print_event(struct tep_handle *pevent, struct trace_seq *s, | |||
5577 | return; | 5577 | return; |
5578 | } | 5578 | } |
5579 | 5579 | ||
5580 | pevent_print_event_task(pevent, s, event, record); | 5580 | tep_print_event_task(pevent, s, event, record); |
5581 | pevent_print_event_time(pevent, s, event, record, use_trace_clock); | 5581 | tep_print_event_time(pevent, s, event, record, use_trace_clock); |
5582 | pevent_print_event_data(pevent, s, event, record); | 5582 | tep_print_event_data(pevent, s, event, record); |
5583 | } | 5583 | } |
5584 | 5584 | ||
5585 | static int events_id_cmp(const void *a, const void *b) | 5585 | static int events_id_cmp(const void *a, const void *b) |
@@ -6388,7 +6388,7 @@ int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event, | |||
6388 | } | 6388 | } |
6389 | 6389 | ||
6390 | /** | 6390 | /** |
6391 | * pevent_print_num_field - print a field and a format | 6391 | * tep_print_num_field - print a field and a format |
6392 | * @s: The seq to print to | 6392 | * @s: The seq to print to |
6393 | * @fmt: The printf format to print the field with. | 6393 | * @fmt: The printf format to print the field with. |
6394 | * @event: the event that the field is for | 6394 | * @event: the event that the field is for |
@@ -6398,9 +6398,9 @@ int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event, | |||
6398 | * | 6398 | * |
6399 | * Returns: 0 on success, -1 field not found, or 1 if buffer is full. | 6399 | * Returns: 0 on success, -1 field not found, or 1 if buffer is full. |
6400 | */ | 6400 | */ |
6401 | int pevent_print_num_field(struct trace_seq *s, const char *fmt, | 6401 | int tep_print_num_field(struct trace_seq *s, const char *fmt, |
6402 | struct event_format *event, const char *name, | 6402 | struct event_format *event, const char *name, |
6403 | struct tep_record *record, int err) | 6403 | struct tep_record *record, int err) |
6404 | { | 6404 | { |
6405 | struct format_field *field = tep_find_field(event, name); | 6405 | struct format_field *field = tep_find_field(event, name); |
6406 | unsigned long long val; | 6406 | unsigned long long val; |
@@ -6420,7 +6420,7 @@ int pevent_print_num_field(struct trace_seq *s, const char *fmt, | |||
6420 | } | 6420 | } |
6421 | 6421 | ||
6422 | /** | 6422 | /** |
6423 | * pevent_print_func_field - print a field and a format for function pointers | 6423 | * tep_print_func_field - print a field and a format for function pointers |
6424 | * @s: The seq to print to | 6424 | * @s: The seq to print to |
6425 | * @fmt: The printf format to print the field with. | 6425 | * @fmt: The printf format to print the field with. |
6426 | * @event: the event that the field is for | 6426 | * @event: the event that the field is for |
@@ -6430,9 +6430,9 @@ int pevent_print_num_field(struct trace_seq *s, const char *fmt, | |||
6430 | * | 6430 | * |
6431 | * Returns: 0 on success, -1 field not found, or 1 if buffer is full. | 6431 | * Returns: 0 on success, -1 field not found, or 1 if buffer is full. |
6432 | */ | 6432 | */ |
6433 | int pevent_print_func_field(struct trace_seq *s, const char *fmt, | 6433 | int tep_print_func_field(struct trace_seq *s, const char *fmt, |
6434 | struct event_format *event, const char *name, | 6434 | struct event_format *event, const char *name, |
6435 | struct tep_record *record, int err) | 6435 | struct tep_record *record, int err) |
6436 | { | 6436 | { |
6437 | struct format_field *field = tep_find_field(event, name); | 6437 | struct format_field *field = tep_find_field(event, name); |
6438 | struct tep_handle *pevent = event->pevent; | 6438 | struct tep_handle *pevent = event->pevent; |
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index eae429a98f7a..fb7f2277bbec 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h | |||
@@ -626,18 +626,18 @@ int pevent_register_print_string(struct tep_handle *pevent, const char *fmt, | |||
626 | unsigned long long addr); | 626 | unsigned long long addr); |
627 | int pevent_pid_is_registered(struct tep_handle *pevent, int pid); | 627 | int pevent_pid_is_registered(struct tep_handle *pevent, int pid); |
628 | 628 | ||
629 | void pevent_print_event_task(struct tep_handle *pevent, struct trace_seq *s, | 629 | void tep_print_event_task(struct tep_handle *pevent, struct trace_seq *s, |
630 | struct event_format *event, | 630 | struct event_format *event, |
631 | struct tep_record *record); | 631 | struct tep_record *record); |
632 | void pevent_print_event_time(struct tep_handle *pevent, struct trace_seq *s, | 632 | void tep_print_event_time(struct tep_handle *pevent, struct trace_seq *s, |
633 | struct event_format *event, | 633 | struct event_format *event, |
634 | struct tep_record *record, | 634 | struct tep_record *record, |
635 | bool use_trace_clock); | 635 | bool use_trace_clock); |
636 | void pevent_print_event_data(struct tep_handle *pevent, struct trace_seq *s, | 636 | void tep_print_event_data(struct tep_handle *pevent, struct trace_seq *s, |
637 | struct event_format *event, | 637 | struct event_format *event, |
638 | struct tep_record *record); | 638 | struct tep_record *record); |
639 | void pevent_print_event(struct tep_handle *pevent, struct trace_seq *s, | 639 | void tep_print_event(struct tep_handle *pevent, struct trace_seq *s, |
640 | struct tep_record *record, bool use_trace_clock); | 640 | struct tep_record *record, bool use_trace_clock); |
641 | 641 | ||
642 | int tep_parse_header_page(struct tep_handle *pevent, char *buf, unsigned long size, | 642 | int tep_parse_header_page(struct tep_handle *pevent, char *buf, unsigned long size, |
643 | int long_size); | 643 | int long_size); |
@@ -665,13 +665,13 @@ int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event, | |||
665 | const char *name, struct tep_record *record, | 665 | const char *name, struct tep_record *record, |
666 | unsigned long long *val, int err); | 666 | unsigned long long *val, int err); |
667 | 667 | ||
668 | int pevent_print_num_field(struct trace_seq *s, const char *fmt, | 668 | int tep_print_num_field(struct trace_seq *s, const char *fmt, |
669 | struct event_format *event, const char *name, | 669 | struct event_format *event, const char *name, |
670 | struct tep_record *record, int err); | 670 | struct tep_record *record, int err); |
671 | 671 | ||
672 | int pevent_print_func_field(struct trace_seq *s, const char *fmt, | 672 | int tep_print_func_field(struct trace_seq *s, const char *fmt, |
673 | struct event_format *event, const char *name, | 673 | struct event_format *event, const char *name, |
674 | struct tep_record *record, int err); | 674 | struct tep_record *record, int err); |
675 | 675 | ||
676 | int pevent_register_event_handler(struct tep_handle *pevent, int id, | 676 | int pevent_register_event_handler(struct tep_handle *pevent, int id, |
677 | const char *sys_name, const char *event_name, | 677 | const char *sys_name, const char *event_name, |
@@ -718,10 +718,10 @@ struct cmdline *pevent_data_pid_from_comm(struct tep_handle *pevent, const char | |||
718 | struct cmdline *next); | 718 | struct cmdline *next); |
719 | int pevent_cmdline_pid(struct tep_handle *pevent, struct cmdline *cmdline); | 719 | int pevent_cmdline_pid(struct tep_handle *pevent, struct cmdline *cmdline); |
720 | 720 | ||
721 | void pevent_print_field(struct trace_seq *s, void *data, | 721 | void tep_print_field(struct trace_seq *s, void *data, |
722 | struct format_field *field); | 722 | struct format_field *field); |
723 | void pevent_print_fields(struct trace_seq *s, void *data, | 723 | void tep_print_fields(struct trace_seq *s, void *data, |
724 | int size __maybe_unused, struct event_format *event); | 724 | int size __maybe_unused, struct event_format *event); |
725 | void tep_event_info(struct trace_seq *s, struct event_format *event, | 725 | void tep_event_info(struct trace_seq *s, struct event_format *event, |
726 | struct tep_record *record); | 726 | struct tep_record *record); |
727 | int pevent_strerror(struct tep_handle *pevent, enum pevent_errno errnum, | 727 | int pevent_strerror(struct tep_handle *pevent, enum pevent_errno errnum, |
@@ -805,8 +805,8 @@ const char *pevent_get_input_buf(void); | |||
805 | unsigned long long pevent_get_input_buf_ptr(void); | 805 | unsigned long long pevent_get_input_buf_ptr(void); |
806 | 806 | ||
807 | /* for debugging */ | 807 | /* for debugging */ |
808 | void pevent_print_funcs(struct tep_handle *pevent); | 808 | void tep_print_funcs(struct tep_handle *pevent); |
809 | void pevent_print_printk(struct tep_handle *pevent); | 809 | void tep_print_printk(struct tep_handle *pevent); |
810 | 810 | ||
811 | /* ----------------------- filtering ----------------------- */ | 811 | /* ----------------------- filtering ----------------------- */ |
812 | 812 | ||
diff --git a/tools/lib/traceevent/plugin_hrtimer.c b/tools/lib/traceevent/plugin_hrtimer.c index 5704d56c6f6f..a37180eef959 100644 --- a/tools/lib/traceevent/plugin_hrtimer.c +++ b/tools/lib/traceevent/plugin_hrtimer.c | |||
@@ -30,16 +30,16 @@ static int timer_expire_handler(struct trace_seq *s, | |||
30 | { | 30 | { |
31 | trace_seq_printf(s, "hrtimer="); | 31 | trace_seq_printf(s, "hrtimer="); |
32 | 32 | ||
33 | if (pevent_print_num_field(s, "0x%llx", event, "timer", | 33 | if (tep_print_num_field(s, "0x%llx", event, "timer", |
34 | record, 0) == -1) | 34 | record, 0) == -1) |
35 | pevent_print_num_field(s, "0x%llx", event, "hrtimer", | 35 | tep_print_num_field(s, "0x%llx", event, "hrtimer", |
36 | record, 1); | 36 | record, 1); |
37 | 37 | ||
38 | trace_seq_printf(s, " now="); | 38 | trace_seq_printf(s, " now="); |
39 | 39 | ||
40 | pevent_print_num_field(s, "%llu", event, "now", record, 1); | 40 | tep_print_num_field(s, "%llu", event, "now", record, 1); |
41 | 41 | ||
42 | pevent_print_func_field(s, " function=%s", event, "function", | 42 | tep_print_func_field(s, " function=%s", event, "function", |
43 | record, 0); | 43 | record, 0); |
44 | return 0; | 44 | return 0; |
45 | } | 45 | } |
@@ -50,19 +50,19 @@ static int timer_start_handler(struct trace_seq *s, | |||
50 | { | 50 | { |
51 | trace_seq_printf(s, "hrtimer="); | 51 | trace_seq_printf(s, "hrtimer="); |
52 | 52 | ||
53 | if (pevent_print_num_field(s, "0x%llx", event, "timer", | 53 | if (tep_print_num_field(s, "0x%llx", event, "timer", |
54 | record, 0) == -1) | 54 | record, 0) == -1) |
55 | pevent_print_num_field(s, "0x%llx", event, "hrtimer", | 55 | tep_print_num_field(s, "0x%llx", event, "hrtimer", |
56 | record, 1); | 56 | record, 1); |
57 | 57 | ||
58 | pevent_print_func_field(s, " function=%s", event, "function", | 58 | tep_print_func_field(s, " function=%s", event, "function", |
59 | record, 0); | 59 | record, 0); |
60 | 60 | ||
61 | trace_seq_printf(s, " expires="); | 61 | trace_seq_printf(s, " expires="); |
62 | pevent_print_num_field(s, "%llu", event, "expires", record, 1); | 62 | tep_print_num_field(s, "%llu", event, "expires", record, 1); |
63 | 63 | ||
64 | trace_seq_printf(s, " softexpires="); | 64 | trace_seq_printf(s, " softexpires="); |
65 | pevent_print_num_field(s, "%llu", event, "softexpires", record, 1); | 65 | tep_print_num_field(s, "%llu", event, "softexpires", record, 1); |
66 | return 0; | 66 | return 0; |
67 | } | 67 | } |
68 | 68 | ||
diff --git a/tools/lib/traceevent/plugin_kvm.c b/tools/lib/traceevent/plugin_kvm.c index ab5439e0ad87..d71bc3fde75b 100644 --- a/tools/lib/traceevent/plugin_kvm.c +++ b/tools/lib/traceevent/plugin_kvm.c | |||
@@ -276,7 +276,7 @@ static int kvm_exit_handler(struct trace_seq *s, struct tep_record *record, | |||
276 | if (print_exit_reason(s, record, event, "exit_reason") < 0) | 276 | if (print_exit_reason(s, record, event, "exit_reason") < 0) |
277 | return -1; | 277 | return -1; |
278 | 278 | ||
279 | pevent_print_num_field(s, " rip 0x%lx", event, "guest_rip", record, 1); | 279 | tep_print_num_field(s, " rip 0x%lx", event, "guest_rip", record, 1); |
280 | 280 | ||
281 | if (pevent_get_field_val(s, event, "info1", record, &info1, 0) >= 0 | 281 | if (pevent_get_field_val(s, event, "info1", record, &info1, 0) >= 0 |
282 | && pevent_get_field_val(s, event, "info2", record, &info2, 0) >= 0) | 282 | && pevent_get_field_val(s, event, "info2", record, &info2, 0) >= 0) |
@@ -336,10 +336,10 @@ static int kvm_nested_vmexit_inject_handler(struct trace_seq *s, struct tep_reco | |||
336 | if (print_exit_reason(s, record, event, "exit_code") < 0) | 336 | if (print_exit_reason(s, record, event, "exit_code") < 0) |
337 | return -1; | 337 | return -1; |
338 | 338 | ||
339 | pevent_print_num_field(s, " info1 %llx", event, "exit_info1", record, 1); | 339 | tep_print_num_field(s, " info1 %llx", event, "exit_info1", record, 1); |
340 | pevent_print_num_field(s, " info2 %llx", event, "exit_info2", record, 1); | 340 | tep_print_num_field(s, " info2 %llx", event, "exit_info2", record, 1); |
341 | pevent_print_num_field(s, " int_info %llx", event, "exit_int_info", record, 1); | 341 | tep_print_num_field(s, " int_info %llx", event, "exit_int_info", record, 1); |
342 | pevent_print_num_field(s, " int_info_err %llx", event, "exit_int_info_err", record, 1); | 342 | tep_print_num_field(s, " int_info_err %llx", event, "exit_int_info_err", record, 1); |
343 | 343 | ||
344 | return 0; | 344 | return 0; |
345 | } | 345 | } |
@@ -347,7 +347,7 @@ static int kvm_nested_vmexit_inject_handler(struct trace_seq *s, struct tep_reco | |||
347 | static int kvm_nested_vmexit_handler(struct trace_seq *s, struct tep_record *record, | 347 | static int kvm_nested_vmexit_handler(struct trace_seq *s, struct tep_record *record, |
348 | struct event_format *event, void *context) | 348 | struct event_format *event, void *context) |
349 | { | 349 | { |
350 | pevent_print_num_field(s, "rip %llx ", event, "rip", record, 1); | 350 | tep_print_num_field(s, "rip %llx ", event, "rip", record, 1); |
351 | 351 | ||
352 | return kvm_nested_vmexit_inject_handler(s, record, event, context); | 352 | return kvm_nested_vmexit_inject_handler(s, record, event, context); |
353 | } | 353 | } |
@@ -406,8 +406,8 @@ static int kvm_mmu_print_role(struct trace_seq *s, struct tep_record *record, | |||
406 | } else | 406 | } else |
407 | trace_seq_printf(s, "WORD: %08x", role.word); | 407 | trace_seq_printf(s, "WORD: %08x", role.word); |
408 | 408 | ||
409 | pevent_print_num_field(s, " root %u ", event, | 409 | tep_print_num_field(s, " root %u ", event, |
410 | "root_count", record, 1); | 410 | "root_count", record, 1); |
411 | 411 | ||
412 | if (pevent_get_field_val(s, event, "unsync", record, &val, 1) < 0) | 412 | if (pevent_get_field_val(s, event, "unsync", record, &val, 1) < 0) |
413 | return -1; | 413 | return -1; |
diff --git a/tools/lib/traceevent/plugin_mac80211.c b/tools/lib/traceevent/plugin_mac80211.c index dd5c7fc0193f..611250300855 100644 --- a/tools/lib/traceevent/plugin_mac80211.c +++ b/tools/lib/traceevent/plugin_mac80211.c | |||
@@ -53,8 +53,8 @@ static void print_string(struct trace_seq *s, struct event_format *event, | |||
53 | trace_seq_printf(s, "%.*s", length, (char *)data + offset); | 53 | trace_seq_printf(s, "%.*s", length, (char *)data + offset); |
54 | } | 54 | } |
55 | 55 | ||
56 | #define SF(fn) pevent_print_num_field(s, fn ":%d", event, fn, record, 0) | 56 | #define SF(fn) tep_print_num_field(s, fn ":%d", event, fn, record, 0) |
57 | #define SFX(fn) pevent_print_num_field(s, fn ":%#x", event, fn, record, 0) | 57 | #define SFX(fn) tep_print_num_field(s, fn ":%#x", event, fn, record, 0) |
58 | #define SP() trace_seq_putc(s, ' ') | 58 | #define SP() trace_seq_putc(s, ' ') |
59 | 59 | ||
60 | static int drv_bss_info_changed(struct trace_seq *s, | 60 | static int drv_bss_info_changed(struct trace_seq *s, |
@@ -66,7 +66,7 @@ static int drv_bss_info_changed(struct trace_seq *s, | |||
66 | print_string(s, event, "wiphy_name", data); | 66 | print_string(s, event, "wiphy_name", data); |
67 | trace_seq_printf(s, " vif:"); | 67 | trace_seq_printf(s, " vif:"); |
68 | print_string(s, event, "vif_name", data); | 68 | print_string(s, event, "vif_name", data); |
69 | pevent_print_num_field(s, "(%d)", event, "vif_type", record, 1); | 69 | tep_print_num_field(s, "(%d)", event, "vif_type", record, 1); |
70 | 70 | ||
71 | trace_seq_printf(s, "\n%*s", INDENT, ""); | 71 | trace_seq_printf(s, "\n%*s", INDENT, ""); |
72 | SF("assoc"); SP(); | 72 | SF("assoc"); SP(); |
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index f27087d06f52..93bc9b1860af 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c | |||
@@ -610,8 +610,8 @@ static char *get_trace_output(struct hist_entry *he) | |||
610 | 610 | ||
611 | trace_seq_init(&seq); | 611 | trace_seq_init(&seq); |
612 | if (symbol_conf.raw_trace) { | 612 | if (symbol_conf.raw_trace) { |
613 | pevent_print_fields(&seq, he->raw_data, he->raw_size, | 613 | tep_print_fields(&seq, he->raw_data, he->raw_size, |
614 | evsel->tp_format); | 614 | evsel->tp_format); |
615 | } else { | 615 | } else { |
616 | tep_event_info(&seq, evsel->tp_format, &rec); | 616 | tep_event_info(&seq, evsel->tp_format, &rec); |
617 | } | 617 | } |
@@ -2047,7 +2047,7 @@ static int __sort__hde_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, | |||
2047 | struct trace_seq seq; | 2047 | struct trace_seq seq; |
2048 | raw_field: | 2048 | raw_field: |
2049 | trace_seq_init(&seq); | 2049 | trace_seq_init(&seq); |
2050 | pevent_print_field(&seq, he->raw_data, hde->field); | 2050 | tep_print_field(&seq, he->raw_data, hde->field); |
2051 | str = seq.buffer; | 2051 | str = seq.buffer; |
2052 | } | 2052 | } |
2053 | 2053 | ||
diff --git a/tools/perf/util/trace-event-read.c b/tools/perf/util/trace-event-read.c index a89a50dee8e7..850f7bf0eced 100644 --- a/tools/perf/util/trace-event-read.c +++ b/tools/perf/util/trace-event-read.c | |||
@@ -479,9 +479,9 @@ ssize_t trace_report(int fd, struct trace_event *tevent, bool __repipe) | |||
479 | repipe = false; | 479 | repipe = false; |
480 | 480 | ||
481 | if (show_funcs) { | 481 | if (show_funcs) { |
482 | pevent_print_funcs(pevent); | 482 | tep_print_funcs(pevent); |
483 | } else if (show_printk) { | 483 | } else if (show_printk) { |
484 | pevent_print_printk(pevent); | 484 | tep_print_printk(pevent); |
485 | } | 485 | } |
486 | 486 | ||
487 | pevent = NULL; | 487 | pevent = NULL; |