diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-11-24 21:56:08 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-11-24 21:56:08 -0500 |
commit | c1f23506e61a6f1045a1a3fc3aac6fca39309047 (patch) | |
tree | 2edfb76db166eacb7703ae004f4b7cefae31d1dc /parse-events.h | |
parent | 9e47d25f3dacb1dcd9e0b18cb411026e8f7b338c (diff) |
Add event handle to plugin print callback
The plugin should have the ability to look at information in
the event (like offsets and sizes of fields). To do this we need
to pass the event handle to the callback.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'parse-events.h')
-rw-r--r-- | parse-events.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/parse-events.h b/parse-events.h index b4e7fdf..a29c295 100644 --- a/parse-events.h +++ b/parse-events.h | |||
@@ -45,8 +45,13 @@ extern int trace_seq_do_printf(struct trace_seq *s); | |||
45 | 45 | ||
46 | /* ----------------------- pevent ----------------------- */ | 46 | /* ----------------------- pevent ----------------------- */ |
47 | 47 | ||
48 | struct event; | ||
49 | |||
50 | typedef int (*pevent_event_handler_func)(struct trace_seq *s, | ||
51 | void *data, int size, | ||
52 | struct event *event); | ||
53 | |||
48 | typedef int (*pevent_plugin_load_func)(void); | 54 | typedef int (*pevent_plugin_load_func)(void); |
49 | typedef int (*pevent_event_handler_func)(struct trace_seq *s, void *data, int size); | ||
50 | 55 | ||
51 | #define PEVENT_PLUGIN_LOADER pevent_plugin_loader | 56 | #define PEVENT_PLUGIN_LOADER pevent_plugin_loader |
52 | #define MAKE_STR(x) #x | 57 | #define MAKE_STR(x) #x |