aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-02-17 05:48:18 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-17 05:50:42 -0500
commit73d3fd96e77745742f3750b7b19ee42204adc210 (patch)
tree02eb978e04288883d7f7709e87d8906687c29ba7
parent97d0bb8dcd8c2812e1927cdb51d7b1f9c98352b5 (diff)
ftrace: fix !CONFIG_DYNAMIC_FTRACE ftrace_swapper_pid definition
Impact: build fix Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/trace/ftrace.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 6533c1d20155..4e6c87ecf1bf 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -243,14 +243,16 @@ static void ftrace_update_pid_func(void)
243 mutex_unlock(&ftrace_lock); 243 mutex_unlock(&ftrace_lock);
244} 244}
245 245
246/* set when tracing only a pid */
247struct pid *ftrace_pid_trace;
248static struct pid * const ftrace_swapper_pid = &init_struct_pid;
249
246#ifdef CONFIG_DYNAMIC_FTRACE 250#ifdef CONFIG_DYNAMIC_FTRACE
251
247#ifndef CONFIG_FTRACE_MCOUNT_RECORD 252#ifndef CONFIG_FTRACE_MCOUNT_RECORD
248# error Dynamic ftrace depends on MCOUNT_RECORD 253# error Dynamic ftrace depends on MCOUNT_RECORD
249#endif 254#endif
250 255
251/* set when tracing only a pid */
252struct pid *ftrace_pid_trace;
253static struct pid * const ftrace_swapper_pid = &init_struct_pid;
254static struct hlist_head ftrace_func_hash[FTRACE_FUNC_HASHSIZE] __read_mostly; 256static struct hlist_head ftrace_func_hash[FTRACE_FUNC_HASHSIZE] __read_mostly;
255 257
256struct ftrace_func_hook { 258struct ftrace_func_hook {