diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-02-17 12:32:04 -0500 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-02-17 12:32:04 -0500 |
commit | b6887d7916e44c1d8913084fb6aa5004d9473f1a (patch) | |
tree | 3446baa5592ce9ce17abb51ffdf3d89e6b52ef9b /include | |
parent | 6a24a244cd3a02d5b290293c32fcf2c6e92b4235 (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')
-rw-r--r-- | include/linux/ftrace.h | 12 |
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 | ||
109 | struct seq_file; | 109 | struct seq_file; |
110 | 110 | ||
111 | struct ftrace_hook_ops { | 111 | struct 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 | ||
123 | extern int | 123 | extern int |
124 | register_ftrace_function_hook(char *glob, struct ftrace_hook_ops *ops, | 124 | register_ftrace_function_probe(char *glob, struct ftrace_probe_ops *ops, |
125 | void *data); | 125 | void *data); |
126 | extern void | 126 | extern void |
127 | unregister_ftrace_function_hook(char *glob, struct ftrace_hook_ops *ops, | 127 | unregister_ftrace_function_probe(char *glob, struct ftrace_probe_ops *ops, |
128 | void *data); | 128 | void *data); |
129 | extern void | 129 | extern void |
130 | unregister_ftrace_function_hook_func(char *glob, struct ftrace_hook_ops *ops); | 130 | unregister_ftrace_function_probe_func(char *glob, struct ftrace_probe_ops *ops); |
131 | extern void unregister_ftrace_function_hook_all(char *glob); | 131 | extern void unregister_ftrace_function_probe_all(char *glob); |
132 | 132 | ||
133 | enum { | 133 | enum { |
134 | FTRACE_FL_FREE = (1 << 0), | 134 | FTRACE_FL_FREE = (1 << 0), |