提交 0c726da9 编写于 作者: A Aneesh Kumar K.V 提交者: Ingo Molnar

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: NAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 072b40a1
...@@ -259,9 +259,7 @@ static const char *trace_options[] = { ...@@ -259,9 +259,7 @@ static const char *trace_options[] = {
"sched-tree", "sched-tree",
"ftrace_printk", "ftrace_printk",
"ftrace_preempt", "ftrace_preempt",
#ifdef CONFIG_BRANCH_TRACER
"branch", "branch",
#endif
"annotate", "annotate",
NULL NULL
}; };
......
...@@ -470,9 +470,7 @@ enum trace_iterator_flags { ...@@ -470,9 +470,7 @@ enum trace_iterator_flags {
TRACE_ITER_SCHED_TREE = 0x200, TRACE_ITER_SCHED_TREE = 0x200,
TRACE_ITER_PRINTK = 0x400, TRACE_ITER_PRINTK = 0x400,
TRACE_ITER_PREEMPTONLY = 0x800, TRACE_ITER_PREEMPTONLY = 0x800,
#ifdef CONFIG_BRANCH_TRACER
TRACE_ITER_BRANCH = 0x1000, TRACE_ITER_BRANCH = 0x1000,
#endif
TRACE_ITER_ANNOTATE = 0x2000, TRACE_ITER_ANNOTATE = 0x2000,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册