diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-10-06 19:06:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-20 12:27:03 -0400 |
commit | 606576ce816603d9fe1fb453a88bc6eea16ca709 (patch) | |
tree | 7c6844ff4d75f249df49e9e5fe97062d301c3a1f /include | |
parent | c2db8054c1eaf99983d8deee347876b01c26c2cf (diff) |
ftrace: rename FTRACE to FUNCTION_TRACER
Due to confusion between the ftrace infrastructure and the gcc profiling
tracer "ftrace", this patch renames the config options from FTRACE to
FUNCTION_TRACER. The other two names that are offspring from FTRACE
DYNAMIC_FTRACE and FTRACE_MCOUNT_RECORD will stay the same.
This patch was generated mostly by script, and partially by hand.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/ftrace.h | 4 | ||||
-rw-r--r-- | include/linux/ftrace.h | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/asm-x86/ftrace.h b/include/asm-x86/ftrace.h index 1bb6f9bbe1ab..233bb9b869c0 100644 --- a/include/asm-x86/ftrace.h +++ b/include/asm-x86/ftrace.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef ASM_X86__FTRACE_H | 1 | #ifndef ASM_X86__FTRACE_H |
2 | #define ASM_X86__FTRACE_H | 2 | #define ASM_X86__FTRACE_H |
3 | 3 | ||
4 | #ifdef CONFIG_FTRACE | 4 | #ifdef CONFIG_FUNCTION_TRACER |
5 | #define MCOUNT_ADDR ((long)(mcount)) | 5 | #define MCOUNT_ADDR ((long)(mcount)) |
6 | #define MCOUNT_INSN_SIZE 5 /* sizeof mcount call */ | 6 | #define MCOUNT_INSN_SIZE 5 /* sizeof mcount call */ |
7 | 7 | ||
@@ -19,6 +19,6 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr) | |||
19 | } | 19 | } |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | #endif /* CONFIG_FTRACE */ | 22 | #endif /* CONFIG_FUNCTION_TRACER */ |
23 | 23 | ||
24 | #endif /* ASM_X86__FTRACE_H */ | 24 | #endif /* ASM_X86__FTRACE_H */ |
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 | ||
13 | extern int ftrace_enabled; | 13 | extern int ftrace_enabled; |
14 | extern int | 14 | extern int |
@@ -36,12 +36,12 @@ void clear_ftrace_function(void); | |||
36 | 36 | ||
37 | extern void ftrace_stub(unsigned long a0, unsigned long a1); | 37 | extern 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) |
43 | static inline void ftrace_kill_atomic(void) { } | 43 | static 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 | ||
102 | static inline void tracer_disable(void) | 102 | static 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 | */ |
114 | static inline int __ftrace_enabled_save(void) | 114 | static 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 | ||
125 | static inline void __ftrace_enabled_restore(int enabled) | 125 | static 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 | } |