aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 15:20:43 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:39:05 -0400
commitf43fdad8627fec2d21df92799b254dceb66c9c3c (patch)
tree09a9c54beaea06b814b3f4e6724375de282d944b /include
parent4c11d7aed389375253b59e2b1865eec96663c65d (diff)
ftrace: fix kexec
disable the tracer while kexec pulls the rug from under the old kernel. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ftrace.h7
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);
68extern void mcount_call(void); 68extern void mcount_call(void);
69#endif 69#endif
70 70
71static 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))