aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-02-16 23:06:01 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-02-16 23:06:01 -0500
commit809dcf29ce4e1723709910878e050bd187617e0e (patch)
tree4747ede5ad0678d6ae88176f403a2c26f277182e /include
parent8fc0c701c5b6c0c3e242758c3acef6f9047940a9 (diff)
ftrace: add pretty print to selected fuction traces
This patch adds a call back for the tracers that have hooks to selected functions. This allows the tracer to show better output in the set_ftrace_filter file. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ftrace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 13918c4400ad..b331e216d8a1 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -106,12 +106,18 @@ struct ftrace_func_command {
106/* asm/ftrace.h must be defined for archs supporting dynamic ftrace */ 106/* asm/ftrace.h must be defined for archs supporting dynamic ftrace */
107#include <asm/ftrace.h> 107#include <asm/ftrace.h>
108 108
109struct seq_file;
110
109struct ftrace_hook_ops { 111struct ftrace_hook_ops {
110 void (*func)(unsigned long ip, 112 void (*func)(unsigned long ip,
111 unsigned long parent_ip, 113 unsigned long parent_ip,
112 void **data); 114 void **data);
113 int (*callback)(unsigned long ip, void **data); 115 int (*callback)(unsigned long ip, void **data);
114 void (*free)(void **data); 116 void (*free)(void **data);
117 int (*print)(struct seq_file *m,
118 unsigned long ip,
119 struct ftrace_hook_ops *ops,
120 void *data);
115}; 121};
116 122
117extern int 123extern int