aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-10-22 03:08:14 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-22 03:08:14 -0400
commitdebfcaf93ed500a051489db6646d71f29fe86a68 (patch)
tree7ba189b6dd654022ecc655b68e3c0a4573627706 /include/linux
parent2515ddc6db8eb49a79f0fe5e67ff09ac7c81eab4 (diff)
parent81520a1b0649d0701205b818714a8c1e1cfbbb5b (diff)
Merge branch 'tracing/ftrace' into tracing/urgent
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ftrace.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index a3d46151be19..0e9529589151 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -8,7 +8,7 @@
8#include <linux/types.h> 8#include <linux/types.h>
9#include <linux/kallsyms.h> 9#include <linux/kallsyms.h>
10 10
11#ifdef CONFIG_FTRACE 11#ifdef CONFIG_FUNCTION_TRACER
12 12
13extern int ftrace_enabled; 13extern int ftrace_enabled;
14extern int 14extern int
@@ -36,12 +36,12 @@ void clear_ftrace_function(void);
36 36
37extern void ftrace_stub(unsigned long a0, unsigned long a1); 37extern void ftrace_stub(unsigned long a0, unsigned long a1);
38 38
39#else /* !CONFIG_FTRACE */ 39#else /* !CONFIG_FUNCTION_TRACER */
40# define register_ftrace_function(ops) do { } while (0) 40# define register_ftrace_function(ops) do { } while (0)
41# define unregister_ftrace_function(ops) do { } while (0) 41# define unregister_ftrace_function(ops) do { } while (0)
42# define clear_ftrace_function(ops) do { } while (0) 42# define clear_ftrace_function(ops) do { } while (0)
43static inline void ftrace_kill_atomic(void) { } 43static inline void ftrace_kill_atomic(void) { }
44#endif /* CONFIG_FTRACE */ 44#endif /* CONFIG_FUNCTION_TRACER */
45 45
46#ifdef CONFIG_DYNAMIC_FTRACE 46#ifdef CONFIG_DYNAMIC_FTRACE
47# define FTRACE_HASHBITS 10 47# define FTRACE_HASHBITS 10
@@ -101,7 +101,7 @@ void ftrace_kill_atomic(void);
101 101
102static inline void tracer_disable(void) 102static inline void tracer_disable(void)
103{ 103{
104#ifdef CONFIG_FTRACE 104#ifdef CONFIG_FUNCTION_TRACER
105 ftrace_enabled = 0; 105 ftrace_enabled = 0;
106#endif 106#endif
107} 107}
@@ -113,7 +113,7 @@ static inline void tracer_disable(void)
113 */ 113 */
114static inline int __ftrace_enabled_save(void) 114static inline int __ftrace_enabled_save(void)
115{ 115{
116#ifdef CONFIG_FTRACE 116#ifdef CONFIG_FUNCTION_TRACER
117 int saved_ftrace_enabled = ftrace_enabled; 117 int saved_ftrace_enabled = ftrace_enabled;
118 ftrace_enabled = 0; 118 ftrace_enabled = 0;
119 return saved_ftrace_enabled; 119 return saved_ftrace_enabled;
@@ -124,7 +124,7 @@ static inline int __ftrace_enabled_save(void)
124 124
125static inline void __ftrace_enabled_restore(int enabled) 125static inline void __ftrace_enabled_restore(int enabled)
126{ 126{
127#ifdef CONFIG_FTRACE 127#ifdef CONFIG_FUNCTION_TRACER
128 ftrace_enabled = enabled; 128 ftrace_enabled = enabled;
129#endif 129#endif
130} 130}