summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat)2013-06-28 04:18:06 +0200
committerSteven Rostedt2013-07-02 02:57:15 +0200
commitf1ed7c741fcd0c3d7d318e7c19813d89934b9296 (patch)
tree58721d29f205342f2099c8548860bcbe6bee13e7 /kernel/trace/trace.h
parenttracing/kprobes: Don't pass addr=ip to perf_trace_buf_submit() (diff)
downloadkernel-qcow2-linux-f1ed7c741fcd0c3d7d318e7c19813d89934b9296.tar.gz
kernel-qcow2-linux-f1ed7c741fcd0c3d7d318e7c19813d89934b9296.tar.xz
kernel-qcow2-linux-f1ed7c741fcd0c3d7d318e7c19813d89934b9296.zip
ftrace: Do not run selftest if command line parameter is set
If the kernel command line ftrace filter parameters are set (ftrace_filter or ftrace_notrace), force the function self test to pass, with a warning why it was forced. If the user adds a filter to the kernel command line, it is assumed that they know what they are doing, and the self test should just not run instead of failing (which disables function tracing) or clearing the filter, as that will probably annoy the user. If the user wants the selftest to run, the message will tell them why it did not. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 711ca7d3e7f1..a88939e666b7 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -776,6 +776,7 @@ print_graph_function_flags(struct trace_iterator *iter, u32 flags)
extern struct list_head ftrace_pids;
#ifdef CONFIG_FUNCTION_TRACER
+extern bool ftrace_filter_param __initdata;
static inline int ftrace_trace_task(struct task_struct *task)
{
if (list_empty(&ftrace_pids))