diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-14 09:58:35 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-14 09:58:35 -0400 |
commit | 6712e299b7dc78aa4971b85e803435ee6d49a9dd (patch) | |
tree | b3d17a2d068737ec07727b28e93c7d374c27721b /kernel/trace/trace.h | |
parent | ec1bb60bbff0386c3ec25360e7a8c72f467a6ff1 (diff) | |
parent | b2613e370dbeb69edbff989382fa54f2395aa471 (diff) |
Merge branch 'tracing/ftrace' into auto-ftrace-next
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 8cb215b239d5..f69f86788c2b 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -223,8 +223,6 @@ void trace_function(struct trace_array *tr, | |||
223 | unsigned long parent_ip, | 223 | unsigned long parent_ip, |
224 | unsigned long flags); | 224 | unsigned long flags); |
225 | 225 | ||
226 | void tracing_start_function_trace(void); | ||
227 | void tracing_stop_function_trace(void); | ||
228 | void tracing_start_cmdline_record(void); | 226 | void tracing_start_cmdline_record(void); |
229 | void tracing_stop_cmdline_record(void); | 227 | void tracing_stop_cmdline_record(void); |
230 | int register_tracer(struct tracer *type); | 228 | int register_tracer(struct tracer *type); |
@@ -241,6 +239,14 @@ void update_max_tr_single(struct trace_array *tr, | |||
241 | 239 | ||
242 | extern cycle_t ftrace_now(int cpu); | 240 | extern cycle_t ftrace_now(int cpu); |
243 | 241 | ||
242 | #ifdef CONFIG_FTRACE | ||
243 | void tracing_start_function_trace(void); | ||
244 | void tracing_stop_function_trace(void); | ||
245 | #else | ||
246 | # define tracing_start_function_trace() do { } while (0) | ||
247 | # define tracing_stop_function_trace() do { } while (0) | ||
248 | #endif | ||
249 | |||
244 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER | 250 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER |
245 | typedef void | 251 | typedef void |
246 | (*tracer_switch_func_t)(void *private, | 252 | (*tracer_switch_func_t)(void *private, |