aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2008-11-16 16:07:58 +0530
committerIngo Molnar <mingo@elte.hu>2008-11-17 12:07:27 +0100
commit0c726da983de0704254250ef6495ca152e7abcca (patch)
treefe57e18784cef716c65a1f4daa39da20acd15b4f /kernel/trace/trace.c
parent072b40a15616fe6bea68466e6bffcfcbf5c8f26f (diff)
downloadkernel_goldelico_gta04-0c726da983de0704254250ef6495ca152e7abcca.zip
kernel_goldelico_gta04-0c726da983de0704254250ef6495ca152e7abcca.tar.gz
kernel_goldelico_gta04-0c726da983de0704254250ef6495ca152e7abcca.tar.bz2
tracing: branch tracer, fix writing to trace/trace_options
Impact: fix trace_options behavior writing to trace/trace_options use the index of the array to find the value of the flag. With branch tracer flag defined conditionally, this breaks writing to trace_options with branch tracer disabled. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r--kernel/trace/trace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 4a90462..b04923b 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -259,9 +259,7 @@ static const char *trace_options[] = {
"sched-tree",
"ftrace_printk",
"ftrace_preempt",
-#ifdef CONFIG_BRANCH_TRACER
"branch",
-#endif
"annotate",
NULL
};