diff options
Diffstat (limited to 'parse-events.h')
-rw-r--r-- | parse-events.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/parse-events.h b/parse-events.h index 6a2c86c..9b64b9d 100644 --- a/parse-events.h +++ b/parse-events.h | |||
@@ -58,11 +58,11 @@ extern int trace_seq_do_printf(struct trace_seq *s); | |||
58 | /* ----------------------- pevent ----------------------- */ | 58 | /* ----------------------- pevent ----------------------- */ |
59 | 59 | ||
60 | struct pevent; | 60 | struct pevent; |
61 | struct event; | 61 | struct event_format; |
62 | 62 | ||
63 | typedef int (*pevent_event_handler_func)(struct trace_seq *s, | 63 | typedef int (*pevent_event_handler_func)(struct trace_seq *s, |
64 | void *data, int size, | 64 | void *data, int size, |
65 | struct event *event, int cpu, | 65 | struct event_format *event, int cpu, |
66 | unsigned long long nsecs); | 66 | unsigned long long nsecs); |
67 | 67 | ||
68 | typedef int (*pevent_plugin_load_func)(struct pevent *pevent); | 68 | typedef int (*pevent_plugin_load_func)(struct pevent *pevent); |
@@ -84,7 +84,7 @@ enum format_flags { | |||
84 | 84 | ||
85 | struct format_field { | 85 | struct format_field { |
86 | struct format_field *next; | 86 | struct format_field *next; |
87 | struct event *event; | 87 | struct event_format *event; |
88 | char *type; | 88 | char *type; |
89 | char *name; | 89 | char *name; |
90 | int offset; | 90 | int offset; |
@@ -187,8 +187,8 @@ struct print_fmt { | |||
187 | struct print_arg *args; | 187 | struct print_arg *args; |
188 | }; | 188 | }; |
189 | 189 | ||
190 | struct event { | 190 | struct event_format { |
191 | struct event *next; | 191 | struct event_format *next; |
192 | struct pevent *pevent; | 192 | struct pevent *pevent; |
193 | char *name; | 193 | char *name; |
194 | int id; | 194 | int id; |
@@ -250,9 +250,9 @@ struct pevent { | |||
250 | struct printk_list *printklist; | 250 | struct printk_list *printklist; |
251 | unsigned int printk_count; | 251 | unsigned int printk_count; |
252 | 252 | ||
253 | struct event *event_list; | 253 | struct event_format *event_list; |
254 | int nr_events; | 254 | int nr_events; |
255 | struct event **events; | 255 | struct event_format **events; |
256 | enum event_sort_type last_type; | 256 | enum event_sort_type last_type; |
257 | 257 | ||
258 | int type_offset; | 258 | int type_offset; |
@@ -359,30 +359,30 @@ int pevent_parse_event(struct pevent *pevent, char *buf, unsigned long size, cha | |||
359 | int pevent_register_event_handler(struct pevent *pevent, int id, char *sys_name, char *event_name, | 359 | int pevent_register_event_handler(struct pevent *pevent, int id, char *sys_name, char *event_name, |
360 | pevent_event_handler_func func); | 360 | pevent_event_handler_func func); |
361 | 361 | ||
362 | struct format_field *pevent_find_common_field(struct event *event, const char *name); | 362 | struct format_field *pevent_find_common_field(struct event_format *event, const char *name); |
363 | struct format_field *pevent_find_field(struct event *event, const char *name); | 363 | struct format_field *pevent_find_field(struct event_format *event, const char *name); |
364 | struct format_field *pevent_find_any_field(struct event *event, const char *name); | 364 | struct format_field *pevent_find_any_field(struct event_format *event, const char *name); |
365 | 365 | ||
366 | const char *pevent_find_function(struct pevent *pevent, unsigned long long addr); | 366 | const char *pevent_find_function(struct pevent *pevent, unsigned long long addr); |
367 | unsigned long long pevent_read_number(struct pevent *pevent, const void *ptr, int size); | 367 | unsigned long long pevent_read_number(struct pevent *pevent, const void *ptr, int size); |
368 | int pevent_read_number_field(struct format_field *field, const void *data, | 368 | int pevent_read_number_field(struct format_field *field, const void *data, |
369 | unsigned long long *value); | 369 | unsigned long long *value); |
370 | 370 | ||
371 | struct event *pevent_find_event(struct pevent *pevent, int id); | 371 | struct event_format *pevent_find_event(struct pevent *pevent, int id); |
372 | 372 | ||
373 | struct event * | 373 | struct event_format * |
374 | pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name); | 374 | pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name); |
375 | 375 | ||
376 | void pevent_data_lat_fmt(struct pevent *pevent, | 376 | void pevent_data_lat_fmt(struct pevent *pevent, |
377 | struct trace_seq *s, void *data, int size __unused); | 377 | struct trace_seq *s, void *data, int size __unused); |
378 | int pevent_data_type(struct pevent *pevent, struct record *rec); | 378 | int pevent_data_type(struct pevent *pevent, struct record *rec); |
379 | struct event *pevent_data_event_from_type(struct pevent *pevent, int type); | 379 | struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type); |
380 | int pevent_data_pid(struct pevent *pevent, struct record *rec); | 380 | int pevent_data_pid(struct pevent *pevent, struct record *rec); |
381 | const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid); | 381 | const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid); |
382 | void pevent_event_info(struct trace_seq *s, struct event *event, | 382 | void pevent_event_info(struct trace_seq *s, struct event_format *event, |
383 | int cpu, void *data, int size, unsigned long long nsecs); | 383 | int cpu, void *data, int size, unsigned long long nsecs); |
384 | 384 | ||
385 | struct event **pevent_list_events(struct pevent *pevent, enum event_sort_type); | 385 | struct event_format **pevent_list_events(struct pevent *pevent, enum event_sort_type); |
386 | 386 | ||
387 | static inline int pevent_get_cpus(struct pevent *pevent) | 387 | static inline int pevent_get_cpus(struct pevent *pevent) |
388 | { | 388 | { |