diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-12-18 10:52:15 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-12-18 10:52:15 -0500 |
commit | 36f9ea18b58d7db2714651f324d95e841a8ef41c (patch) | |
tree | 619957d93de0c8cfd68fdbb28bfa4b284d635a91 /parse-events.h | |
parent | 398ed04f52d71aada31676462234367f70f99dd6 (diff) |
trace-cmd: Pass in record to pevent functions
Instead of passing in the data, size and timestamp to the
pevent parsing routines, pass in the record itself. This allows
the pevent parsing routines to have a bit more control and facilitates
the need of future work where we need to know more about the record
in the parser.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'parse-events.h')
-rw-r--r-- | parse-events.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/parse-events.h b/parse-events.h index 9b64b9d..ba80efd 100644 --- a/parse-events.h +++ b/parse-events.h | |||
@@ -61,9 +61,8 @@ struct pevent; | |||
61 | struct event_format; | 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 | struct record *record, |
65 | struct event_format *event, int cpu, | 65 | struct event_format *event, int cpu); |
66 | unsigned long long nsecs); | ||
67 | 66 | ||
68 | typedef int (*pevent_plugin_load_func)(struct pevent *pevent); | 67 | typedef int (*pevent_plugin_load_func)(struct pevent *pevent); |
69 | 68 | ||
@@ -350,7 +349,7 @@ int pevent_register_print_string(struct pevent *pevent, char *fmt, | |||
350 | int pevent_pid_is_registered(struct pevent *pevent, int pid); | 349 | int pevent_pid_is_registered(struct pevent *pevent, int pid); |
351 | 350 | ||
352 | void pevent_print_event(struct pevent *pevent, struct trace_seq *s, | 351 | void pevent_print_event(struct pevent *pevent, struct trace_seq *s, |
353 | int cpu, void *data, int size, unsigned long long nsecs); | 352 | int cpu, struct record *record); |
354 | 353 | ||
355 | int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size); | 354 | int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size); |
356 | 355 | ||
@@ -374,13 +373,13 @@ struct event_format * | |||
374 | pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name); | 373 | pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name); |
375 | 374 | ||
376 | void pevent_data_lat_fmt(struct pevent *pevent, | 375 | void pevent_data_lat_fmt(struct pevent *pevent, |
377 | struct trace_seq *s, void *data, int size __unused); | 376 | struct trace_seq *s, struct record *record); |
378 | int pevent_data_type(struct pevent *pevent, struct record *rec); | 377 | int pevent_data_type(struct pevent *pevent, struct record *rec); |
379 | struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type); | 378 | struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type); |
380 | int pevent_data_pid(struct pevent *pevent, struct record *rec); | 379 | int pevent_data_pid(struct pevent *pevent, struct record *rec); |
381 | const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid); | 380 | const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid); |
382 | void pevent_event_info(struct trace_seq *s, struct event_format *event, | 381 | void pevent_event_info(struct trace_seq *s, struct event_format *event, |
383 | int cpu, void *data, int size, unsigned long long nsecs); | 382 | int cpu, struct record *record); |
384 | 383 | ||
385 | struct event_format **pevent_list_events(struct pevent *pevent, enum event_sort_type); | 384 | struct event_format **pevent_list_events(struct pevent *pevent, enum event_sort_type); |
386 | 385 | ||