diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/lib/traceevent/event-parse.c | 22 | ||||
| -rw-r--r-- | tools/lib/traceevent/event-parse.h | 30 | ||||
| -rw-r--r-- | tools/lib/traceevent/parse-filter.c | 24 | ||||
| -rw-r--r-- | tools/perf/util/trace-event-parse.c | 8 | ||||
| -rw-r--r-- | tools/perf/util/trace-event-read.c | 10 | ||||
| -rw-r--r-- | tools/perf/util/trace-event.h | 4 |
6 files changed, 49 insertions, 49 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index ec1317483010..998534992197 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
| @@ -3872,7 +3872,7 @@ static void pretty_print(struct trace_seq *s, void *data, int size, struct event | |||
| 3872 | * and lock depth) and places it into the trace_seq. | 3872 | * and lock depth) and places it into the trace_seq. |
| 3873 | */ | 3873 | */ |
| 3874 | void pevent_data_lat_fmt(struct pevent *pevent, | 3874 | void pevent_data_lat_fmt(struct pevent *pevent, |
| 3875 | struct trace_seq *s, struct record *record) | 3875 | struct trace_seq *s, struct pevent_record *record) |
| 3876 | { | 3876 | { |
| 3877 | static int check_lock_depth = 1; | 3877 | static int check_lock_depth = 1; |
| 3878 | static int lock_depth_exists; | 3878 | static int lock_depth_exists; |
| @@ -3933,7 +3933,7 @@ void pevent_data_lat_fmt(struct pevent *pevent, | |||
| 3933 | * | 3933 | * |
| 3934 | * This returns the event id from the @rec. | 3934 | * This returns the event id from the @rec. |
| 3935 | */ | 3935 | */ |
| 3936 | int pevent_data_type(struct pevent *pevent, struct record *rec) | 3936 | int pevent_data_type(struct pevent *pevent, struct pevent_record *rec) |
| 3937 | { | 3937 | { |
| 3938 | return trace_parse_common_type(pevent, rec->data); | 3938 | return trace_parse_common_type(pevent, rec->data); |
| 3939 | } | 3939 | } |
| @@ -3957,7 +3957,7 @@ struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type | |||
| 3957 | * | 3957 | * |
| 3958 | * This returns the PID from a raw data. | 3958 | * This returns the PID from a raw data. |
| 3959 | */ | 3959 | */ |
| 3960 | int pevent_data_pid(struct pevent *pevent, struct record *rec) | 3960 | int pevent_data_pid(struct pevent *pevent, struct pevent_record *rec) |
| 3961 | { | 3961 | { |
| 3962 | return parse_common_pid(pevent, rec->data); | 3962 | return parse_common_pid(pevent, rec->data); |
| 3963 | } | 3963 | } |
| @@ -3991,7 +3991,7 @@ const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid) | |||
| 3991 | * writes the print format into the trace_seq. | 3991 | * writes the print format into the trace_seq. |
| 3992 | */ | 3992 | */ |
| 3993 | void pevent_event_info(struct trace_seq *s, struct event_format *event, | 3993 | void pevent_event_info(struct trace_seq *s, struct event_format *event, |
| 3994 | struct record *record) | 3994 | struct pevent_record *record) |
| 3995 | { | 3995 | { |
| 3996 | int print_pretty = 1; | 3996 | int print_pretty = 1; |
| 3997 | 3997 | ||
| @@ -4011,7 +4011,7 @@ void pevent_event_info(struct trace_seq *s, struct event_format *event, | |||
| 4011 | } | 4011 | } |
| 4012 | 4012 | ||
| 4013 | void pevent_print_event(struct pevent *pevent, struct trace_seq *s, | 4013 | void pevent_print_event(struct pevent *pevent, struct trace_seq *s, |
| 4014 | struct record *record) | 4014 | struct pevent_record *record) |
| 4015 | { | 4015 | { |
| 4016 | static char *spaces = " "; /* 20 spaces */ | 4016 | static char *spaces = " "; /* 20 spaces */ |
| 4017 | struct event_format *event; | 4017 | struct event_format *event; |
| @@ -4587,7 +4587,7 @@ int pevent_parse_event(struct pevent *pevent, | |||
| 4587 | } | 4587 | } |
| 4588 | 4588 | ||
| 4589 | int get_field_val(struct trace_seq *s, struct format_field *field, | 4589 | int get_field_val(struct trace_seq *s, struct format_field *field, |
| 4590 | const char *name, struct record *record, | 4590 | const char *name, struct pevent_record *record, |
| 4591 | unsigned long long *val, int err) | 4591 | unsigned long long *val, int err) |
| 4592 | { | 4592 | { |
| 4593 | if (!field) { | 4593 | if (!field) { |
| @@ -4620,7 +4620,7 @@ int get_field_val(struct trace_seq *s, struct format_field *field, | |||
| 4620 | * On failure, it returns NULL. | 4620 | * On failure, it returns NULL. |
| 4621 | */ | 4621 | */ |
| 4622 | void *pevent_get_field_raw(struct trace_seq *s, struct event_format *event, | 4622 | void *pevent_get_field_raw(struct trace_seq *s, struct event_format *event, |
| 4623 | const char *name, struct record *record, | 4623 | const char *name, struct pevent_record *record, |
| 4624 | int *len, int err) | 4624 | int *len, int err) |
| 4625 | { | 4625 | { |
| 4626 | struct format_field *field; | 4626 | struct format_field *field; |
| @@ -4667,7 +4667,7 @@ void *pevent_get_field_raw(struct trace_seq *s, struct event_format *event, | |||
| 4667 | * Returns 0 on success -1 on field not found. | 4667 | * Returns 0 on success -1 on field not found. |
| 4668 | */ | 4668 | */ |
| 4669 | int pevent_get_field_val(struct trace_seq *s, struct event_format *event, | 4669 | int pevent_get_field_val(struct trace_seq *s, struct event_format *event, |
| 4670 | const char *name, struct record *record, | 4670 | const char *name, struct pevent_record *record, |
| 4671 | unsigned long long *val, int err) | 4671 | unsigned long long *val, int err) |
| 4672 | { | 4672 | { |
| 4673 | struct format_field *field; | 4673 | struct format_field *field; |
| @@ -4692,7 +4692,7 @@ int pevent_get_field_val(struct trace_seq *s, struct event_format *event, | |||
| 4692 | * Returns 0 on success -1 on field not found. | 4692 | * Returns 0 on success -1 on field not found. |
| 4693 | */ | 4693 | */ |
| 4694 | int pevent_get_common_field_val(struct trace_seq *s, struct event_format *event, | 4694 | int pevent_get_common_field_val(struct trace_seq *s, struct event_format *event, |
| 4695 | const char *name, struct record *record, | 4695 | const char *name, struct pevent_record *record, |
| 4696 | unsigned long long *val, int err) | 4696 | unsigned long long *val, int err) |
| 4697 | { | 4697 | { |
| 4698 | struct format_field *field; | 4698 | struct format_field *field; |
| @@ -4717,7 +4717,7 @@ int pevent_get_common_field_val(struct trace_seq *s, struct event_format *event, | |||
| 4717 | * Returns 0 on success -1 on field not found. | 4717 | * Returns 0 on success -1 on field not found. |
| 4718 | */ | 4718 | */ |
| 4719 | int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event, | 4719 | int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event, |
| 4720 | const char *name, struct record *record, | 4720 | const char *name, struct pevent_record *record, |
| 4721 | unsigned long long *val, int err) | 4721 | unsigned long long *val, int err) |
| 4722 | { | 4722 | { |
| 4723 | struct format_field *field; | 4723 | struct format_field *field; |
| @@ -4743,7 +4743,7 @@ int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event, | |||
| 4743 | */ | 4743 | */ |
| 4744 | int pevent_print_num_field(struct trace_seq *s, const char *fmt, | 4744 | int pevent_print_num_field(struct trace_seq *s, const char *fmt, |
| 4745 | struct event_format *event, const char *name, | 4745 | struct event_format *event, const char *name, |
| 4746 | struct record *record, int err) | 4746 | struct pevent_record *record, int err) |
| 4747 | { | 4747 | { |
| 4748 | struct format_field *field = pevent_find_field(event, name); | 4748 | struct format_field *field = pevent_find_field(event, name); |
| 4749 | unsigned long long val; | 4749 | unsigned long long val; |
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index 88528278f9aa..ac997bc7b592 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | #define DEBUG_RECORD 0 | 39 | #define DEBUG_RECORD 0 |
| 40 | #endif | 40 | #endif |
| 41 | 41 | ||
| 42 | struct record { | 42 | struct pevent_record { |
| 43 | unsigned long long ts; | 43 | unsigned long long ts; |
| 44 | unsigned long long offset; | 44 | unsigned long long offset; |
| 45 | long long missed_events; /* buffer dropped events before */ | 45 | long long missed_events; /* buffer dropped events before */ |
| @@ -51,8 +51,8 @@ struct record { | |||
| 51 | int locked; /* Do not free, even if ref_count is zero */ | 51 | int locked; /* Do not free, even if ref_count is zero */ |
| 52 | void *private; | 52 | void *private; |
| 53 | #if DEBUG_RECORD | 53 | #if DEBUG_RECORD |
| 54 | struct record *prev; | 54 | struct pevent_record *prev; |
| 55 | struct record *next; | 55 | struct pevent_record *next; |
| 56 | long alloc_addr; | 56 | long alloc_addr; |
| 57 | #endif | 57 | #endif |
| 58 | }; | 58 | }; |
| @@ -91,7 +91,7 @@ struct pevent; | |||
| 91 | struct event_format; | 91 | struct event_format; |
| 92 | 92 | ||
| 93 | typedef int (*pevent_event_handler_func)(struct trace_seq *s, | 93 | typedef int (*pevent_event_handler_func)(struct trace_seq *s, |
| 94 | struct record *record, | 94 | struct pevent_record *record, |
| 95 | struct event_format *event, | 95 | struct event_format *event, |
| 96 | void *context); | 96 | void *context); |
| 97 | 97 | ||
| @@ -497,7 +497,7 @@ int pevent_register_print_string(struct pevent *pevent, char *fmt, | |||
| 497 | int pevent_pid_is_registered(struct pevent *pevent, int pid); | 497 | int pevent_pid_is_registered(struct pevent *pevent, int pid); |
| 498 | 498 | ||
| 499 | void pevent_print_event(struct pevent *pevent, struct trace_seq *s, | 499 | void pevent_print_event(struct pevent *pevent, struct trace_seq *s, |
| 500 | struct record *record); | 500 | struct pevent_record *record); |
| 501 | 501 | ||
| 502 | int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size, | 502 | int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size, |
| 503 | int long_size); | 503 | int long_size); |
| @@ -506,22 +506,22 @@ int pevent_parse_event(struct pevent *pevent, const char *buf, | |||
| 506 | unsigned long size, const char *sys); | 506 | unsigned long size, const char *sys); |
| 507 | 507 | ||
| 508 | void *pevent_get_field_raw(struct trace_seq *s, struct event_format *event, | 508 | void *pevent_get_field_raw(struct trace_seq *s, struct event_format *event, |
| 509 | const char *name, struct record *record, | 509 | const char *name, struct pevent_record *record, |
| 510 | int *len, int err); | 510 | int *len, int err); |
| 511 | 511 | ||
| 512 | int pevent_get_field_val(struct trace_seq *s, struct event_format *event, | 512 | int pevent_get_field_val(struct trace_seq *s, struct event_format *event, |
| 513 | const char *name, struct record *record, | 513 | const char *name, struct pevent_record *record, |
| 514 | unsigned long long *val, int err); | 514 | unsigned long long *val, int err); |
| 515 | int pevent_get_common_field_val(struct trace_seq *s, struct event_format *event, | 515 | int pevent_get_common_field_val(struct trace_seq *s, struct event_format *event, |
| 516 | const char *name, struct record *record, | 516 | const char *name, struct pevent_record *record, |
| 517 | unsigned long long *val, int err); | 517 | unsigned long long *val, int err); |
| 518 | int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event, | 518 | int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event, |
| 519 | const char *name, struct record *record, | 519 | const char *name, struct pevent_record *record, |
| 520 | unsigned long long *val, int err); | 520 | unsigned long long *val, int err); |
| 521 | 521 | ||
| 522 | int pevent_print_num_field(struct trace_seq *s, const char *fmt, | 522 | int pevent_print_num_field(struct trace_seq *s, const char *fmt, |
| 523 | struct event_format *event, const char *name, | 523 | struct event_format *event, const char *name, |
| 524 | struct record *record, int err); | 524 | struct pevent_record *record, int err); |
| 525 | 525 | ||
| 526 | int pevent_register_event_handler(struct pevent *pevent, int id, char *sys_name, char *event_name, | 526 | int pevent_register_event_handler(struct pevent *pevent, int id, char *sys_name, char *event_name, |
| 527 | pevent_event_handler_func func, void *context); | 527 | pevent_event_handler_func func, void *context); |
| @@ -547,13 +547,13 @@ struct event_format * | |||
| 547 | pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name); | 547 | pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name); |
| 548 | 548 | ||
| 549 | void pevent_data_lat_fmt(struct pevent *pevent, | 549 | void pevent_data_lat_fmt(struct pevent *pevent, |
| 550 | struct trace_seq *s, struct record *record); | 550 | struct trace_seq *s, struct pevent_record *record); |
| 551 | int pevent_data_type(struct pevent *pevent, struct record *rec); | 551 | int pevent_data_type(struct pevent *pevent, struct pevent_record *rec); |
| 552 | struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type); | 552 | struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type); |
| 553 | int pevent_data_pid(struct pevent *pevent, struct record *rec); | 553 | int pevent_data_pid(struct pevent *pevent, struct pevent_record *rec); |
| 554 | const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid); | 554 | const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid); |
| 555 | void pevent_event_info(struct trace_seq *s, struct event_format *event, | 555 | void pevent_event_info(struct trace_seq *s, struct event_format *event, |
| 556 | struct record *record); | 556 | struct pevent_record *record); |
| 557 | 557 | ||
| 558 | struct event_format **pevent_list_events(struct pevent *pevent, enum event_sort_type); | 558 | struct event_format **pevent_list_events(struct pevent *pevent, enum event_sort_type); |
| 559 | struct format_field **pevent_event_common_fields(struct event_format *event); | 559 | struct format_field **pevent_event_common_fields(struct event_format *event); |
| @@ -773,7 +773,7 @@ int pevent_filter_add_filter_str(struct event_filter *filter, | |||
| 773 | 773 | ||
| 774 | 774 | ||
| 775 | int pevent_filter_match(struct event_filter *filter, | 775 | int pevent_filter_match(struct event_filter *filter, |
| 776 | struct record *record); | 776 | struct pevent_record *record); |
| 777 | 777 | ||
| 778 | int pevent_event_filtered(struct event_filter *filter, | 778 | int pevent_event_filtered(struct event_filter *filter, |
| 779 | int event_id); | 779 | int event_id); |
diff --git a/tools/lib/traceevent/parse-filter.c b/tools/lib/traceevent/parse-filter.c index fe371828af6c..2d40c5ed81d6 100644 --- a/tools/lib/traceevent/parse-filter.c +++ b/tools/lib/traceevent/parse-filter.c | |||
| @@ -1561,10 +1561,10 @@ int pevent_filter_event_has_trivial(struct event_filter *filter, | |||
| 1561 | } | 1561 | } |
| 1562 | 1562 | ||
| 1563 | static int test_filter(struct event_format *event, | 1563 | static int test_filter(struct event_format *event, |
| 1564 | struct filter_arg *arg, struct record *record); | 1564 | struct filter_arg *arg, struct pevent_record *record); |
| 1565 | 1565 | ||
| 1566 | static const char * | 1566 | static const char * |
| 1567 | get_comm(struct event_format *event, struct record *record) | 1567 | get_comm(struct event_format *event, struct pevent_record *record) |
| 1568 | { | 1568 | { |
| 1569 | const char *comm; | 1569 | const char *comm; |
| 1570 | int pid; | 1570 | int pid; |
| @@ -1576,7 +1576,7 @@ get_comm(struct event_format *event, struct record *record) | |||
| 1576 | 1576 | ||
| 1577 | static unsigned long long | 1577 | static unsigned long long |
| 1578 | get_value(struct event_format *event, | 1578 | get_value(struct event_format *event, |
| 1579 | struct format_field *field, struct record *record) | 1579 | struct format_field *field, struct pevent_record *record) |
| 1580 | { | 1580 | { |
| 1581 | unsigned long long val; | 1581 | unsigned long long val; |
| 1582 | 1582 | ||
| @@ -1607,10 +1607,10 @@ get_value(struct event_format *event, | |||
| 1607 | } | 1607 | } |
| 1608 | 1608 | ||
| 1609 | static unsigned long long | 1609 | static unsigned long long |
| 1610 | get_arg_value(struct event_format *event, struct filter_arg *arg, struct record *record); | 1610 | get_arg_value(struct event_format *event, struct filter_arg *arg, struct pevent_record *record); |
| 1611 | 1611 | ||
| 1612 | static unsigned long long | 1612 | static unsigned long long |
| 1613 | get_exp_value(struct event_format *event, struct filter_arg *arg, struct record *record) | 1613 | get_exp_value(struct event_format *event, struct filter_arg *arg, struct pevent_record *record) |
| 1614 | { | 1614 | { |
| 1615 | unsigned long long lval, rval; | 1615 | unsigned long long lval, rval; |
| 1616 | 1616 | ||
| @@ -1656,7 +1656,7 @@ get_exp_value(struct event_format *event, struct filter_arg *arg, struct record | |||
| 1656 | } | 1656 | } |
| 1657 | 1657 | ||
| 1658 | static unsigned long long | 1658 | static unsigned long long |
| 1659 | get_arg_value(struct event_format *event, struct filter_arg *arg, struct record *record) | 1659 | get_arg_value(struct event_format *event, struct filter_arg *arg, struct pevent_record *record) |
| 1660 | { | 1660 | { |
| 1661 | switch (arg->type) { | 1661 | switch (arg->type) { |
| 1662 | case FILTER_ARG_FIELD: | 1662 | case FILTER_ARG_FIELD: |
| @@ -1677,7 +1677,7 @@ get_arg_value(struct event_format *event, struct filter_arg *arg, struct record | |||
| 1677 | } | 1677 | } |
| 1678 | 1678 | ||
| 1679 | static int test_num(struct event_format *event, | 1679 | static int test_num(struct event_format *event, |
| 1680 | struct filter_arg *arg, struct record *record) | 1680 | struct filter_arg *arg, struct pevent_record *record) |
| 1681 | { | 1681 | { |
| 1682 | unsigned long long lval, rval; | 1682 | unsigned long long lval, rval; |
| 1683 | 1683 | ||
| @@ -1709,7 +1709,7 @@ static int test_num(struct event_format *event, | |||
| 1709 | } | 1709 | } |
| 1710 | } | 1710 | } |
| 1711 | 1711 | ||
| 1712 | static const char *get_field_str(struct filter_arg *arg, struct record *record) | 1712 | static const char *get_field_str(struct filter_arg *arg, struct pevent_record *record) |
| 1713 | { | 1713 | { |
| 1714 | const char *val = record->data + arg->str.field->offset; | 1714 | const char *val = record->data + arg->str.field->offset; |
| 1715 | 1715 | ||
| @@ -1727,7 +1727,7 @@ static const char *get_field_str(struct filter_arg *arg, struct record *record) | |||
| 1727 | } | 1727 | } |
| 1728 | 1728 | ||
| 1729 | static int test_str(struct event_format *event, | 1729 | static int test_str(struct event_format *event, |
| 1730 | struct filter_arg *arg, struct record *record) | 1730 | struct filter_arg *arg, struct pevent_record *record) |
| 1731 | { | 1731 | { |
| 1732 | const char *val; | 1732 | const char *val; |
| 1733 | 1733 | ||
| @@ -1757,7 +1757,7 @@ static int test_str(struct event_format *event, | |||
| 1757 | } | 1757 | } |
| 1758 | 1758 | ||
| 1759 | static int test_op(struct event_format *event, | 1759 | static int test_op(struct event_format *event, |
| 1760 | struct filter_arg *arg, struct record *record) | 1760 | struct filter_arg *arg, struct pevent_record *record) |
| 1761 | { | 1761 | { |
| 1762 | switch (arg->op.type) { | 1762 | switch (arg->op.type) { |
| 1763 | case FILTER_OP_AND: | 1763 | case FILTER_OP_AND: |
| @@ -1778,7 +1778,7 @@ static int test_op(struct event_format *event, | |||
| 1778 | } | 1778 | } |
| 1779 | 1779 | ||
| 1780 | static int test_filter(struct event_format *event, | 1780 | static int test_filter(struct event_format *event, |
| 1781 | struct filter_arg *arg, struct record *record) | 1781 | struct filter_arg *arg, struct pevent_record *record) |
| 1782 | { | 1782 | { |
| 1783 | switch (arg->type) { | 1783 | switch (arg->type) { |
| 1784 | case FILTER_ARG_BOOLEAN: | 1784 | case FILTER_ARG_BOOLEAN: |
| @@ -1843,7 +1843,7 @@ int pevent_event_filtered(struct event_filter *filter, | |||
| 1843 | * -2 - if no filters exist | 1843 | * -2 - if no filters exist |
| 1844 | */ | 1844 | */ |
| 1845 | int pevent_filter_match(struct event_filter *filter, | 1845 | int pevent_filter_match(struct event_filter *filter, |
| 1846 | struct record *record) | 1846 | struct pevent_record *record) |
| 1847 | { | 1847 | { |
| 1848 | struct pevent *pevent = filter->pevent; | 1848 | struct pevent *pevent = filter->pevent; |
| 1849 | struct filter_type *filter_type; | 1849 | struct filter_type *filter_type; |
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 39f22f8843a2..df2fddbf0cd2 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
| @@ -152,7 +152,7 @@ void *raw_field_ptr(struct event_format *event, const char *name, void *data) | |||
| 152 | 152 | ||
| 153 | int trace_parse_common_type(void *data) | 153 | int trace_parse_common_type(void *data) |
| 154 | { | 154 | { |
| 155 | struct record record; | 155 | struct pevent_record record; |
| 156 | 156 | ||
| 157 | record.data = data; | 157 | record.data = data; |
| 158 | return pevent_data_type(pevent, &record); | 158 | return pevent_data_type(pevent, &record); |
| @@ -160,7 +160,7 @@ int trace_parse_common_type(void *data) | |||
| 160 | 160 | ||
| 161 | int trace_parse_common_pid(void *data) | 161 | int trace_parse_common_pid(void *data) |
| 162 | { | 162 | { |
| 163 | struct record record; | 163 | struct pevent_record record; |
| 164 | 164 | ||
| 165 | record.data = data; | 165 | record.data = data; |
| 166 | return pevent_data_pid(pevent, &record); | 166 | return pevent_data_pid(pevent, &record); |
| @@ -180,7 +180,7 @@ struct event_format *trace_find_event(int type) | |||
| 180 | void print_trace_event(int cpu, void *data, int size) | 180 | void print_trace_event(int cpu, void *data, int size) |
| 181 | { | 181 | { |
| 182 | struct event_format *event; | 182 | struct event_format *event; |
| 183 | struct record record; | 183 | struct pevent_record record; |
| 184 | struct trace_seq s; | 184 | struct trace_seq s; |
| 185 | int type; | 185 | int type; |
| 186 | 186 | ||
| @@ -206,7 +206,7 @@ void print_trace_event(int cpu, void *data, int size) | |||
| 206 | void print_event(int cpu, void *data, int size, unsigned long long nsecs, | 206 | void print_event(int cpu, void *data, int size, unsigned long long nsecs, |
| 207 | char *comm) | 207 | char *comm) |
| 208 | { | 208 | { |
| 209 | struct record record; | 209 | struct pevent_record record; |
| 210 | struct trace_seq s; | 210 | struct trace_seq s; |
| 211 | int pid; | 211 | int pid; |
| 212 | 212 | ||
diff --git a/tools/perf/util/trace-event-read.c b/tools/perf/util/trace-event-read.c index 29b92065b88e..f097e0dd6c5c 100644 --- a/tools/perf/util/trace-event-read.c +++ b/tools/perf/util/trace-event-read.c | |||
| @@ -292,7 +292,7 @@ struct cpu_data { | |||
| 292 | unsigned long long offset; | 292 | unsigned long long offset; |
| 293 | unsigned long long size; | 293 | unsigned long long size; |
| 294 | unsigned long long timestamp; | 294 | unsigned long long timestamp; |
| 295 | struct record *next; | 295 | struct pevent_record *next; |
| 296 | char *page; | 296 | char *page; |
| 297 | int cpu; | 297 | int cpu; |
| 298 | int index; | 298 | int index; |
| @@ -377,9 +377,9 @@ static int calc_index(void *ptr, int cpu) | |||
| 377 | return (unsigned long)ptr - (unsigned long)cpu_data[cpu].page; | 377 | return (unsigned long)ptr - (unsigned long)cpu_data[cpu].page; |
| 378 | } | 378 | } |
| 379 | 379 | ||
| 380 | struct record *trace_peek_data(int cpu) | 380 | struct pevent_record *trace_peek_data(int cpu) |
| 381 | { | 381 | { |
| 382 | struct record *data; | 382 | struct pevent_record *data; |
| 383 | void *page = cpu_data[cpu].page; | 383 | void *page = cpu_data[cpu].page; |
| 384 | int idx = cpu_data[cpu].index; | 384 | int idx = cpu_data[cpu].index; |
| 385 | void *ptr = page + idx; | 385 | void *ptr = page + idx; |
| @@ -477,9 +477,9 @@ read_again: | |||
| 477 | return data; | 477 | return data; |
| 478 | } | 478 | } |
| 479 | 479 | ||
| 480 | struct record *trace_read_data(int cpu) | 480 | struct pevent_record *trace_read_data(int cpu) |
| 481 | { | 481 | { |
| 482 | struct record *data; | 482 | struct pevent_record *data; |
| 483 | 483 | ||
| 484 | data = trace_peek_data(cpu); | 484 | data = trace_peek_data(cpu); |
| 485 | cpu_data[cpu].next = NULL; | 485 | cpu_data[cpu].next = NULL; |
diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h index 112bc2aa72e1..639852ac1117 100644 --- a/tools/perf/util/trace-event.h +++ b/tools/perf/util/trace-event.h | |||
| @@ -38,7 +38,7 @@ void print_event(int cpu, void *data, int size, unsigned long long nsecs, | |||
| 38 | int parse_ftrace_file(char *buf, unsigned long size); | 38 | int parse_ftrace_file(char *buf, unsigned long size); |
| 39 | int parse_event_file(char *buf, unsigned long size, char *sys); | 39 | int parse_event_file(char *buf, unsigned long size, char *sys); |
| 40 | 40 | ||
| 41 | struct record *trace_peek_data(int cpu); | 41 | struct pevent_record *trace_peek_data(int cpu); |
| 42 | struct event_format *trace_find_event(int type); | 42 | struct event_format *trace_find_event(int type); |
| 43 | 43 | ||
| 44 | unsigned long long | 44 | unsigned long long |
| @@ -57,7 +57,7 @@ struct event_format *trace_find_next_event(struct event_format *event); | |||
| 57 | unsigned long long read_size(void *ptr, int size); | 57 | unsigned long long read_size(void *ptr, int size); |
| 58 | unsigned long long eval_flag(const char *flag); | 58 | unsigned long long eval_flag(const char *flag); |
| 59 | 59 | ||
| 60 | struct record *trace_read_data(int cpu); | 60 | struct pevent_record *trace_read_data(int cpu); |
| 61 | int read_tracing_data(int fd, struct list_head *pattrs); | 61 | int read_tracing_data(int fd, struct list_head *pattrs); |
| 62 | 62 | ||
| 63 | struct tracing_data { | 63 | struct tracing_data { |
