Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26994ead authored by Steven Rostedt's avatar Steven Rostedt Committed by Thomas Gleixner
Browse files

ftrace: enabled tracing by default



This patch is the correct way to have tracing enabled by default.

Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 4eebcc81
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -107,7 +107,7 @@ static struct trace_array max_tr;


static DEFINE_PER_CPU(struct trace_array_cpu, max_data);
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 unsigned long		trace_nr_entries = 16384UL;


static struct tracer		*trace_types __read_mostly;
static struct tracer		*trace_types __read_mostly;
@@ -2268,6 +2268,8 @@ __init static int tracer_alloc_buffers(void)
	int ret = -ENOMEM;
	int ret = -ENOMEM;
	int i;
	int i;


	global_trace.ctrl = tracer_enabled;

	/* Allocate the first page for all buffers */
	/* Allocate the first page for all buffers */
	for_each_possible_cpu(i) {
	for_each_possible_cpu(i) {
		data = global_trace.data[i] = &per_cpu(global_trace_cpu, i);
		data = global_trace.data[i] = &per_cpu(global_trace_cpu, i);