aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 15:20:51 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 15:04:20 -0400
commit86387f7ee5d3273ff4859e2c64ce656639b6ca65 (patch)
treed2080c680e9e9415dfa99bb8408302584035e664 /include/linux/ftrace.h
parent57422797dc009fc83766bcf230d29dbe6e08e21e (diff)
ftrace: add stack tracing
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 08fbef1744cc..0d3714e7110b 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -93,6 +93,7 @@ static inline void tracer_disable(void)
93# define CALLER_ADDR3 ((unsigned long)__builtin_return_address(3)) 93# define CALLER_ADDR3 ((unsigned long)__builtin_return_address(3))
94# define CALLER_ADDR4 ((unsigned long)__builtin_return_address(4)) 94# define CALLER_ADDR4 ((unsigned long)__builtin_return_address(4))
95# define CALLER_ADDR5 ((unsigned long)__builtin_return_address(5)) 95# define CALLER_ADDR5 ((unsigned long)__builtin_return_address(5))
96# define CALLER_ADDR6 ((unsigned long)__builtin_return_address(6))
96#else 97#else
97# define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0)) 98# define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0))
98# define CALLER_ADDR1 0UL 99# define CALLER_ADDR1 0UL
@@ -100,6 +101,7 @@ static inline void tracer_disable(void)
100# define CALLER_ADDR3 0UL 101# define CALLER_ADDR3 0UL
101# define CALLER_ADDR4 0UL 102# define CALLER_ADDR4 0UL
102# define CALLER_ADDR5 0UL 103# define CALLER_ADDR5 0UL
104# define CALLER_ADDR6 0UL
103#endif 105#endif
104 106
105#ifdef CONFIG_IRQSOFF_TRACER 107#ifdef CONFIG_IRQSOFF_TRACER