“245f880c25dbd8927af0f33aa5d1404370013957”上不存在“arch/git@gitcode.net:openeuler/kernel.git”
提交 26994ead 编写于 作者: S Steven Rostedt 提交者: Thomas Gleixner

ftrace: enabled tracing by default

This patch is the correct way to have tracing enabled by default.
Signed-off-by: NSteven Rostedt <srostedt@redhat.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 4eebcc81
无相关合并请求
......@@ -107,7 +107,7 @@ static struct trace_array max_tr;
static DEFINE_PER_CPU(struct trace_array_cpu, max_data);
static int tracer_enabled;
static int tracer_enabled = 1;
static unsigned long trace_nr_entries = 16384UL;
static struct tracer *trace_types __read_mostly;
......@@ -2268,6 +2268,8 @@ __init static int tracer_alloc_buffers(void)
int ret = -ENOMEM;
int i;
global_trace.ctrl = tracer_enabled;
/* Allocate the first page for all buffers */
for_each_possible_cpu(i) {
data = global_trace.data[i] = &per_cpu(global_trace_cpu, i);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部