diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-11-24 21:27:39 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-11-24 21:27:39 -0500 |
commit | f57227c404def68a98c3bb2d2fa7dbe904c5988f (patch) | |
tree | 02ca7e49462701ff5ad12338fa4697b52ae121b1 /Makefile | |
parent | e46cb5cdd97734282a68af67675c0fe40a779a00 (diff) |
allow plugins to override the event parsing handler
This patch adds the function to parse_events called
pevent_register_event_handler(int id, char *sys_name,
char *event_name,
pevent_event_handler_func func)
If id is >= 0 then the event is searched for by id, and checked
against sys_name and event_name if those are non NULL.
If id < 0, then the sys_name and event_name are used. If sys_name
is non NULL, it will match the event system with that name,
otherwise it will just find the first event named event_name.
The pevent_event_handler_func is defined as:
int (*func)(struct trace_seq *s, void *data, int size);
This lets a plugin register a function that will be called in place
of the "pretty_print" function for the event.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ trace-read.o:: parse-events.h | |||
19 | trace-cmd.o:: parse-events.h $(LIB_FILE) | 19 | trace-cmd.o:: parse-events.h $(LIB_FILE) |
20 | 20 | ||
21 | trace-cmd:: trace-cmd.o trace-read.o trace-util.o | 21 | trace-cmd:: trace-cmd.o trace-read.o trace-util.o |
22 | $(CC) $^ $(LIBS) -o $@ | 22 | $(CC) $^ $(LIBS) -rdynamic -o $@ |
23 | 23 | ||
24 | parse-events.o: parse-events.c parse-events.h | 24 | parse-events.o: parse-events.c parse-events.h |
25 | $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@ | 25 | $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) -fPIC $< -o $@ |