aboutsummaryrefslogtreecommitdiffstats
path: root/parse-events.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-12-18 10:52:15 -0500
committerSteven Rostedt <rostedt@goodmis.org>2009-12-18 10:52:15 -0500
commit36f9ea18b58d7db2714651f324d95e841a8ef41c (patch)
tree619957d93de0c8cfd68fdbb28bfa4b284d635a91 /parse-events.h
parent398ed04f52d71aada31676462234367f70f99dd6 (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.h11
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;
61struct event_format; 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 struct record *record,
65 struct event_format *event, int cpu, 65 struct event_format *event, int cpu);
66 unsigned long long nsecs);
67 66
68typedef int (*pevent_plugin_load_func)(struct pevent *pevent); 67typedef int (*pevent_plugin_load_func)(struct pevent *pevent);
69 68
@@ -350,7 +349,7 @@ int pevent_register_print_string(struct pevent *pevent, char *fmt,
350int pevent_pid_is_registered(struct pevent *pevent, int pid); 349int pevent_pid_is_registered(struct pevent *pevent, int pid);
351 350
352void pevent_print_event(struct pevent *pevent, struct trace_seq *s, 351void 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
355int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size); 354int pevent_parse_header_page(struct pevent *pevent, char *buf, unsigned long size);
356 355
@@ -374,13 +373,13 @@ struct event_format *
374pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name); 373pevent_find_event_by_name(struct pevent *pevent, const char *sys, const char *name);
375 374
376void pevent_data_lat_fmt(struct pevent *pevent, 375void 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);
378int pevent_data_type(struct pevent *pevent, struct record *rec); 377int pevent_data_type(struct pevent *pevent, struct record *rec);
379struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type); 378struct event_format *pevent_data_event_from_type(struct pevent *pevent, int type);
380int pevent_data_pid(struct pevent *pevent, struct record *rec); 379int pevent_data_pid(struct pevent *pevent, struct record *rec);
381const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid); 380const char *pevent_data_comm_from_pid(struct pevent *pevent, int pid);
382void pevent_event_info(struct trace_seq *s, struct event_format *event, 381void 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
385struct event_format **pevent_list_events(struct pevent *pevent, enum event_sort_type); 384struct event_format **pevent_list_events(struct pevent *pevent, enum event_sort_type);
386 385