diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-06-25 11:59:45 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-07-18 13:57:02 -0400 |
commit | fdc841b58cf5268fa349eaf9f74fd9a8c6944a34 (patch) | |
tree | c2a7617a5785be7c3b396c09e1ccf1192b60a6b0 /arch/x86/kernel/mcount_64.S | |
parent | 7544256aa20356e506b0d179f9b6abc661847e2f (diff) |
ftrace: x86: Remove check of obsolete variable function_trace_stop
Nothing sets function_trace_stop to disable function tracing anymore.
Remove the check for it in the arch code.
Link: http://lkml.kernel.org/r/53C54D32.6000000@zytor.com
Acked-by: H. Peter Anvin <hpa@linux.intel.com>
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'arch/x86/kernel/mcount_64.S')
-rw-r--r-- | arch/x86/kernel/mcount_64.S | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/x86/kernel/mcount_64.S b/arch/x86/kernel/mcount_64.S index 6b4e3c3b3d74..c73aecf10d34 100644 --- a/arch/x86/kernel/mcount_64.S +++ b/arch/x86/kernel/mcount_64.S | |||
@@ -46,10 +46,6 @@ END(function_hook) | |||
46 | .endm | 46 | .endm |
47 | 47 | ||
48 | ENTRY(ftrace_caller) | 48 | ENTRY(ftrace_caller) |
49 | /* Check if tracing was disabled (quick check) */ | ||
50 | cmpl $0, function_trace_stop | ||
51 | jne ftrace_stub | ||
52 | |||
53 | ftrace_caller_setup | 49 | ftrace_caller_setup |
54 | /* regs go into 4th parameter (but make it NULL) */ | 50 | /* regs go into 4th parameter (but make it NULL) */ |
55 | movq $0, %rcx | 51 | movq $0, %rcx |
@@ -73,10 +69,6 @@ ENTRY(ftrace_regs_caller) | |||
73 | /* Save the current flags before compare (in SS location)*/ | 69 | /* Save the current flags before compare (in SS location)*/ |
74 | pushfq | 70 | pushfq |
75 | 71 | ||
76 | /* Check if tracing was disabled (quick check) */ | ||
77 | cmpl $0, function_trace_stop | ||
78 | jne ftrace_restore_flags | ||
79 | |||
80 | /* skip=8 to skip flags saved in SS */ | 72 | /* skip=8 to skip flags saved in SS */ |
81 | ftrace_caller_setup 8 | 73 | ftrace_caller_setup 8 |
82 | 74 | ||
@@ -131,7 +123,7 @@ GLOBAL(ftrace_regs_call) | |||
131 | popfq | 123 | popfq |
132 | 124 | ||
133 | jmp ftrace_return | 125 | jmp ftrace_return |
134 | ftrace_restore_flags: | 126 | |
135 | popfq | 127 | popfq |
136 | jmp ftrace_stub | 128 | jmp ftrace_stub |
137 | 129 | ||
@@ -141,9 +133,6 @@ END(ftrace_regs_caller) | |||
141 | #else /* ! CONFIG_DYNAMIC_FTRACE */ | 133 | #else /* ! CONFIG_DYNAMIC_FTRACE */ |
142 | 134 | ||
143 | ENTRY(function_hook) | 135 | ENTRY(function_hook) |
144 | cmpl $0, function_trace_stop | ||
145 | jne ftrace_stub | ||
146 | |||
147 | cmpq $ftrace_stub, ftrace_trace_function | 136 | cmpq $ftrace_stub, ftrace_trace_function |
148 | jnz trace | 137 | jnz trace |
149 | 138 | ||
@@ -182,10 +171,6 @@ END(function_hook) | |||
182 | ENTRY(ftrace_graph_caller) | 171 | ENTRY(ftrace_graph_caller) |
183 | MCOUNT_SAVE_FRAME | 172 | MCOUNT_SAVE_FRAME |
184 | 173 | ||
185 | /* Check if tracing was disabled (quick check) */ | ||
186 | cmpl $0, function_trace_stop | ||
187 | jne fgraph_skip | ||
188 | |||
189 | #ifdef CC_USING_FENTRY | 174 | #ifdef CC_USING_FENTRY |
190 | leaq SS+16(%rsp), %rdi | 175 | leaq SS+16(%rsp), %rdi |
191 | movq $0, %rdx /* No framepointers needed */ | 176 | movq $0, %rdx /* No framepointers needed */ |
@@ -198,7 +183,6 @@ ENTRY(ftrace_graph_caller) | |||
198 | 183 | ||
199 | call prepare_ftrace_return | 184 | call prepare_ftrace_return |
200 | 185 | ||
201 | fgraph_skip: | ||
202 | MCOUNT_RESTORE_FRAME | 186 | MCOUNT_RESTORE_FRAME |
203 | 187 | ||
204 | retq | 188 | retq |