forked from luck/tmp_suning_uos_patched
trace: Use tracing_reset_online_cpus in more places
Impact: cleanup Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Acked-by: Frédéric Weisbecker <fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
700a3dcb90
commit
f04109bf1b
|
@ -133,11 +133,7 @@ static void stop_branch_trace(struct trace_array *tr)
|
||||||
|
|
||||||
static int branch_trace_init(struct trace_array *tr)
|
static int branch_trace_init(struct trace_array *tr)
|
||||||
{
|
{
|
||||||
int cpu;
|
tracing_reset_online_cpus(tr);
|
||||||
|
|
||||||
for_each_online_cpu(cpu)
|
|
||||||
tracing_reset(tr, cpu);
|
|
||||||
|
|
||||||
start_branch_trace(tr);
|
start_branch_trace(tr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,15 +52,11 @@ static struct tracer_flags tracer_flags = {
|
||||||
|
|
||||||
static int graph_trace_init(struct trace_array *tr)
|
static int graph_trace_init(struct trace_array *tr)
|
||||||
{
|
{
|
||||||
int cpu, ret;
|
int ret = register_ftrace_graph(&trace_graph_return,
|
||||||
|
|
||||||
for_each_online_cpu(cpu)
|
|
||||||
tracing_reset(tr, cpu);
|
|
||||||
|
|
||||||
ret = register_ftrace_graph(&trace_graph_return,
|
|
||||||
&trace_graph_entry);
|
&trace_graph_entry);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
tracing_reset_online_cpus(tr);
|
||||||
tracing_start_cmdline_record();
|
tracing_start_cmdline_record();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -47,12 +47,8 @@ static void stop_nop_trace(struct trace_array *tr)
|
||||||
|
|
||||||
static int nop_trace_init(struct trace_array *tr)
|
static int nop_trace_init(struct trace_array *tr)
|
||||||
{
|
{
|
||||||
int cpu;
|
|
||||||
ctx_trace = tr;
|
ctx_trace = tr;
|
||||||
|
tracing_reset_online_cpus(tr);
|
||||||
for_each_online_cpu(cpu)
|
|
||||||
tracing_reset(tr, cpu);
|
|
||||||
|
|
||||||
start_nop_trace(tr);
|
start_nop_trace(tr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user