aboutsummaryrefslogtreecommitdiffstats
path: root/parse-events.h
diff options
context:
space:
mode:
Diffstat (limited to 'parse-events.h')
-rw-r--r--parse-events.h30
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
60struct pevent; 60struct pevent;
61struct event; 61struct event_format;
62 62
63typedef int (*pevent_event_handler_func)(struct trace_seq *s, 63typedef 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
68typedef int (*pevent_plugin_load_func)(struct pevent *pevent); 68typedef int (*pevent_plugin_load_func)(struct pevent *pevent);
@@ -84,7 +84,7 @@ enum format_flags {
84 84
85struct format_field { 85struct 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
190struct event { 190struct 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
359int pevent_register_event_handler(struct pevent *pevent, int id, char *sys_name, char *event_name, 359int 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
362struct format_field *pevent_find_common_field(struct event *event, const char *name); 362struct format_field *pevent_find_common_field(struct event_format *event, const char *name);
363struct format_field *pevent_find_field(struct event *event, const char *name); 363struct format_field *pevent_find_field(struct event_format *event, const char *name);
364struct format_field *pevent_find_any_field(struct event *event, const char *name); 364struct format_field *pevent_find_any_field(struct event_format *event, const char *name);
365 365
366const char *pevent_find_function(struct pevent *pevent, unsigned long long addr); 366const char *pevent_find_function(struct pevent *pevent, unsigned long long addr);
367unsigned long long pevent_read_number(struct pevent *pevent, const void *ptr, int size); 367unsigned long long pevent_read_number(struct pevent *pevent, const void *ptr, int size);
368int pevent_read_number_field(struct format_field *field, const void *data, 368int pevent_read_number_field(struct format_field *field, const void *data,
369 unsigned long long *value); 369 unsigned long long *value);
370 370
371struct event *pevent_find_event(struct pevent *pevent, int id); 371struct event_format *pevent_find_event(struct pevent *pevent, int id);
372 372
373struct event * 373struct event_format *
374pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name); 374pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name);
375 375
376void pevent_data_lat_fmt(struct pevent *pevent, 376void 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);
378int pevent_data_type(struct pevent *pevent, struct record *rec); 378int pevent_data_type(struct pevent *pevent, struct record *rec);
379struct event *pevent_data_event_from_type(struct pevent *pevent, int type); 379struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type);
380int pevent_data_pid(struct pevent *pevent, struct record *rec); 380int pevent_data_pid(struct pevent *pevent, struct record *rec);
381const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid); 381const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid);
382void pevent_event_info(struct trace_seq *s, struct event *event, 382void 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
385struct event **pevent_list_events(struct pevent *pevent, enum event_sort_type); 385struct event_format **pevent_list_events(struct pevent *pevent, enum event_sort_type);
386 386
387static inline int pevent_get_cpus(struct pevent *pevent) 387static inline int pevent_get_cpus(struct pevent *pevent)
388{ 388{