diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index f22a7ac32380..acef8b4636f0 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -496,12 +496,12 @@ print_graph_function(struct trace_iterator *iter) | |||
496 | } | 496 | } |
497 | #endif /* CONFIG_FUNCTION_GRAPH_TRACER */ | 497 | #endif /* CONFIG_FUNCTION_GRAPH_TRACER */ |
498 | 498 | ||
499 | extern struct pid *ftrace_pid_trace; | 499 | extern struct list_head ftrace_pids; |
500 | 500 | ||
501 | #ifdef CONFIG_FUNCTION_TRACER | 501 | #ifdef CONFIG_FUNCTION_TRACER |
502 | static inline int ftrace_trace_task(struct task_struct *task) | 502 | static inline int ftrace_trace_task(struct task_struct *task) |
503 | { | 503 | { |
504 | if (!ftrace_pid_trace) | 504 | if (list_empty(&ftrace_pids)) |
505 | return 1; | 505 | return 1; |
506 | 506 | ||
507 | return test_tsk_trace_trace(task); | 507 | return test_tsk_trace_trace(task); |