diff options
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index f5911d2d42c3..a42390c1d6e1 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -68,6 +68,13 @@ extern void ftrace_call(void); | |||
68 | extern void mcount_call(void); | 68 | extern void mcount_call(void); |
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | static inline void tracer_disable(void) | ||
72 | { | ||
73 | #ifdef CONFIG_FTRACE | ||
74 | ftrace_enabled = 0; | ||
75 | #endif | ||
76 | } | ||
77 | |||
71 | #ifdef CONFIG_FRAME_POINTER | 78 | #ifdef CONFIG_FRAME_POINTER |
72 | /* TODO: need to fix this for ARM */ | 79 | /* TODO: need to fix this for ARM */ |
73 | # define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0)) | 80 | # define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0)) |