diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-09-06 01:06:03 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 04:36:55 -0400 |
commit | c0719e5a4b1ccc04180b7a7b71095c9fb7131919 (patch) | |
tree | a22ebc58b34f94caf63491ad35f034d0564f4cfd /include/linux | |
parent | d3ee6d992821f471193a7ee7a00af9ebb4bf5d01 (diff) |
ftrace: use ftrace_release for all dynamic ftrace functions
ftrace_release is necessary for all uses of dynamic ftrace and not just
the archs that have CONFIG_FTRACE_MCOUNT_RECORD defined.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/ftrace.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 8b4cf38c80d2..5de9903645d5 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -77,8 +77,10 @@ extern void mcount_call(void); | |||
77 | 77 | ||
78 | extern int skip_trace(unsigned long ip); | 78 | extern int skip_trace(unsigned long ip); |
79 | 79 | ||
80 | void ftrace_disable_daemon(void); | 80 | extern void ftrace_release(void *start, unsigned long size); |
81 | void ftrace_enable_daemon(void); | 81 | |
82 | extern void ftrace_disable_daemon(void); | ||
83 | extern void ftrace_enable_daemon(void); | ||
82 | 84 | ||
83 | #else | 85 | #else |
84 | # define skip_trace(ip) ({ 0; }) | 86 | # define skip_trace(ip) ({ 0; }) |
@@ -86,6 +88,7 @@ void ftrace_enable_daemon(void); | |||
86 | # define ftrace_set_filter(buf, len, reset) do { } while (0) | 88 | # define ftrace_set_filter(buf, len, reset) do { } while (0) |
87 | # define ftrace_disable_daemon() do { } while (0) | 89 | # define ftrace_disable_daemon() do { } while (0) |
88 | # define ftrace_enable_daemon() do { } while (0) | 90 | # define ftrace_enable_daemon() do { } while (0) |
91 | static inline void ftrace_release(void *start, unsigned long size) { } | ||
89 | #endif /* CONFIG_DYNAMIC_FTRACE */ | 92 | #endif /* CONFIG_DYNAMIC_FTRACE */ |
90 | 93 | ||
91 | /* totally disable ftrace - can not re-enable after this */ | 94 | /* totally disable ftrace - can not re-enable after this */ |
@@ -199,12 +202,10 @@ static inline void ftrace_dump(void) { } | |||
199 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD | 202 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD |
200 | extern void ftrace_init(void); | 203 | extern void ftrace_init(void); |
201 | extern void ftrace_init_module(unsigned long *start, unsigned long *end); | 204 | extern void ftrace_init_module(unsigned long *start, unsigned long *end); |
202 | extern void ftrace_release(void *start, unsigned long size); | ||
203 | #else | 205 | #else |
204 | static inline void ftrace_init(void) { } | 206 | static inline void ftrace_init(void) { } |
205 | static inline void | 207 | static inline void |
206 | ftrace_init_module(unsigned long *start, unsigned long *end) { } | 208 | ftrace_init_module(unsigned long *start, unsigned long *end) { } |
207 | static inline void ftrace_release(void *start, unsigned long size) { } | ||
208 | #endif | 209 | #endif |
209 | 210 | ||
210 | 211 | ||