]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/ftrace_event.h
tracing: Allow events to share their print functions
[net-next-2.6.git] / include / linux / ftrace_event.h
index 393a8394df0e2ce3b7fcd52eaf8f140ea3bcb727..4f77932b09832a80c96e9b7664c5f6bf87c62ffc 100644 (file)
@@ -70,18 +70,25 @@ struct trace_iterator {
 };
 
 
+struct trace_event;
+
 typedef enum print_line_t (*trace_print_func)(struct trace_iterator *iter,
-                                             int flags);
-struct trace_event {
-       struct hlist_node       node;
-       struct list_head        list;
-       int                     type;
+                                     int flags, struct trace_event *event);
+
+struct trace_event_functions {
        trace_print_func        trace;
        trace_print_func        raw;
        trace_print_func        hex;
        trace_print_func        binary;
 };
 
+struct trace_event {
+       struct hlist_node               node;
+       struct list_head                list;
+       int                             type;
+       struct trace_event_functions    *funcs;
+};
+
 extern int register_ftrace_event(struct trace_event *event);
 extern int unregister_ftrace_event(struct trace_event *event);