diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-04-05 18:48:06 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2012-04-25 07:35:48 -0400 |
commit | 1c698186abf5caaea06fda66590f6a0e0a21628d (patch) | |
tree | b100ba4b49a8b5c11f23d00804b47835235849bf /tools/lib/traceevent/event-parse.h | |
parent | 42c80139eaa0feebf961c9792fa9eef76a3ce663 (diff) |
parse-events: Rename struct record to struct pevent_record
As libtraceevent will be a library, having struct record is far
too generic of a name to use. Renaming it to be consistent with the
rest of the functions will be a better long term solution.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Arun Sharma <asharma@fb.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'tools/lib/traceevent/event-parse.h')
-rw-r--r-- | tools/lib/traceevent/event-parse.h | 30 |
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 | ||
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); |