diff options
| -rw-r--r-- | kernel/trace/ftrace.c | 8 |
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 */ | ||
| 247 | struct pid *ftrace_pid_trace; | ||
| 248 | static 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 */ | ||
| 252 | struct pid *ftrace_pid_trace; | ||
| 253 | static struct pid * const ftrace_swapper_pid = &init_struct_pid; | ||
| 254 | static struct hlist_head ftrace_func_hash[FTRACE_FUNC_HASHSIZE] __read_mostly; | 256 | static struct hlist_head ftrace_func_hash[FTRACE_FUNC_HASHSIZE] __read_mostly; |
| 255 | 257 | ||
| 256 | struct ftrace_func_hook { | 258 | struct ftrace_func_hook { |
