aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-06-25 11:25:19 -0400
committerSteven Rostedt <rostedt@goodmis.org>2014-07-18 13:56:59 -0400
commit0ef1b9e0cfd98f91b2341d581ea9424eb4ba3aa7 (patch)
tree563f4f9b2ec833a04ac207126f9118191bfc7337
parent545d47b8f359f7e9b5beabc28bfeecb3fc6af1ee (diff)
ftrace: Remove ftrace_start/stop()
There are no more kernel users of ftrace_stop() and ftrace_start(). Remove them. Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--include/linux/ftrace.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 18fb2c4a3f7f..b7333794554f 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -143,32 +143,6 @@ enum ftrace_tracing_type_t {
143/* Current tracing type, default is FTRACE_TYPE_ENTER */ 143/* Current tracing type, default is FTRACE_TYPE_ENTER */
144extern enum ftrace_tracing_type_t ftrace_tracing_type; 144extern enum ftrace_tracing_type_t ftrace_tracing_type;
145 145
146/**
147 * ftrace_stop - stop function tracer.
148 *
149 * A quick way to stop the function tracer. Note this an on off switch,
150 * it is not something that is recursive like preempt_disable.
151 * This does not disable the calling of mcount, it only stops the
152 * calling of functions from mcount.
153 */
154static inline void ftrace_stop(void)
155{
156 function_trace_stop = 1;
157}
158
159/**
160 * ftrace_start - start the function tracer.
161 *
162 * This function is the inverse of ftrace_stop. This does not enable
163 * the function tracing if the function tracer is disabled. This only
164 * sets the function tracer flag to continue calling the functions
165 * from mcount.
166 */
167static inline void ftrace_start(void)
168{
169 function_trace_stop = 0;
170}
171
172/* 146/*
173 * The ftrace_ops must be a static and should also 147 * The ftrace_ops must be a static and should also
174 * be read_mostly. These functions do modify read_mostly variables 148 * be read_mostly. These functions do modify read_mostly variables
@@ -245,8 +219,6 @@ static inline int ftrace_nr_registered_ops(void)
245} 219}
246static inline void clear_ftrace_function(void) { } 220static inline void clear_ftrace_function(void) { }
247static inline void ftrace_kill(void) { } 221static inline void ftrace_kill(void) { }
248static inline void ftrace_stop(void) { }
249static inline void ftrace_start(void) { }
250#endif /* CONFIG_FUNCTION_TRACER */ 222#endif /* CONFIG_FUNCTION_TRACER */
251 223
252#ifdef CONFIG_STACK_TRACER 224#ifdef CONFIG_STACK_TRACER