aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/traceevent/event-parse.h')
-rw-r--r--tools/lib/traceevent/event-parse.h30
1 files changed, 15 insertions, 15 deletions
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
42struct record { 42struct 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;
91struct event_format; 91struct event_format;
92 92
93typedef int (*pevent_event_handler_func)(struct trace_seq *s, 93typedef 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,
497int pevent_pid_is_registered(struct pevent *pevent, int pid); 497int pevent_pid_is_registered(struct pevent *pevent, int pid);
498 498
499void pevent_print_event(struct pevent *pevent, struct trace_seq *s, 499void pevent_print_event(struct pevent *pevent, struct trace_seq *s,
500 struct record *record); 500 struct pevent_record *record);
501 501
502int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size, 502int 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
508void *pevent_get_field_raw(struct trace_seq *s, struct event_format *event, 508void *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
512int pevent_get_field_val(struct trace_seq *s, struct event_format *event, 512int 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);
515int pevent_get_common_field_val(struct trace_seq *s, struct event_format *event, 515int 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);
518int pevent_get_any_field_val(struct trace_seq *s, struct event_format *event, 518int 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
522int pevent_print_num_field(struct trace_seq *s, const char *fmt, 522int 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
526int pevent_register_event_handler(struct pevent *pevent, int id, char *sys_name, char *event_name, 526int 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 *
547pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name); 547pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name);
548 548
549void pevent_data_lat_fmt(struct pevent *pevent, 549void pevent_data_lat_fmt(struct pevent *pevent,
550 struct trace_seq *s, struct record *record); 550 struct trace_seq *s, struct pevent_record *record);
551int pevent_data_type(struct pevent *pevent, struct record *rec); 551int pevent_data_type(struct pevent *pevent, struct pevent_record *rec);
552struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type); 552struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type);
553int pevent_data_pid(struct pevent *pevent, struct record *rec); 553int pevent_data_pid(struct pevent *pevent, struct pevent_record *rec);
554const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid); 554const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid);
555void pevent_event_info(struct trace_seq *s, struct event_format *event, 555void pevent_event_info(struct trace_seq *s, struct event_format *event,
556 struct record *record); 556 struct pevent_record *record);
557 557
558struct event_format **pevent_list_events(struct pevent *pevent, enum event_sort_type); 558struct event_format **pevent_list_events(struct pevent *pevent, enum event_sort_type);
559struct format_field **pevent_event_common_fields(struct event_format *event); 559struct 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
775int pevent_filter_match(struct event_filter *filter, 775int pevent_filter_match(struct event_filter *filter,
776 struct record *record); 776 struct pevent_record *record);
777 777
778int pevent_event_filtered(struct event_filter *filter, 778int pevent_event_filtered(struct event_filter *filter,
779 int event_id); 779 int event_id);