diff options
Diffstat (limited to 'include/linux/ftrace_event.h')
| -rw-r--r-- | include/linux/ftrace_event.h | 17 | 
1 files changed, 12 insertions, 5 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 393a8394df0..4f77932b098 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h @@ -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);  |