aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-02-17 12:32:04 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-02-17 12:32:04 -0500
commitb6887d7916e44c1d8913084fb6aa5004d9473f1a (patch)
tree3446baa5592ce9ce17abb51ffdf3d89e6b52ef9b /include/linux/ftrace.h
parent6a24a244cd3a02d5b290293c32fcf2c6e92b4235 (diff)
ftrace: rename _hook to _probe
Impact: clean up Ingo Molnar did not like the _hook naming convention used by the select function tracer. Luis Claudio R. Goncalves suggested using the "_probe" extension. This patch implements the change of calling the functions and variables "_hook" and replacing them with "_probe". Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 63281228ce3e..9d224c43e634 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -108,7 +108,7 @@ struct ftrace_func_command {
108 108
109struct seq_file; 109struct seq_file;
110 110
111struct ftrace_hook_ops { 111struct ftrace_probe_ops {
112 void (*func)(unsigned long ip, 112 void (*func)(unsigned long ip,
113 unsigned long parent_ip, 113 unsigned long parent_ip,
114 void **data); 114 void **data);
@@ -116,19 +116,19 @@ struct ftrace_hook_ops {
116 void (*free)(void **data); 116 void (*free)(void **data);
117 int (*print)(struct seq_file *m, 117 int (*print)(struct seq_file *m,
118 unsigned long ip, 118 unsigned long ip,
119 struct ftrace_hook_ops *ops, 119 struct ftrace_probe_ops *ops,
120 void *data); 120 void *data);
121}; 121};
122 122
123extern int 123extern int
124register_ftrace_function_hook(char *glob, struct ftrace_hook_ops *ops, 124register_ftrace_function_probe(char *glob, struct ftrace_probe_ops *ops,
125 void *data); 125 void *data);
126extern void 126extern void
127unregister_ftrace_function_hook(char *glob, struct ftrace_hook_ops *ops, 127unregister_ftrace_function_probe(char *glob, struct ftrace_probe_ops *ops,
128 void *data); 128 void *data);
129extern void 129extern void
130unregister_ftrace_function_hook_func(char *glob, struct ftrace_hook_ops *ops); 130unregister_ftrace_function_probe_func(char *glob, struct ftrace_probe_ops *ops);
131extern void unregister_ftrace_function_hook_all(char *glob); 131extern void unregister_ftrace_function_probe_all(char *glob);
132 132
133enum { 133enum {
134 FTRACE_FL_FREE = (1 << 0), 134 FTRACE_FL_FREE = (1 << 0),