From: Ingo Molnar <mingo@elte.hu>
To: "Frédéric Weisbecker" <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>,
Steven Rostedt <rostedt@goodmis.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] trace: Use tracing_reset_online_cpus in more places
Date: Thu, 29 Jan 2009 14:29:38 +0100 [thread overview]
Message-ID: <20090129132938.GC24391@elte.hu> (raw)
In-Reply-To: <c62985530901280706x61b4e4d1nbb43913f9b53e07@mail.gmail.com>
* Frédéric Weisbecker <fweisbec@gmail.com> wrote:
> 2009/1/28 Arnaldo Carvalho de Melo <acme@ghostprotocols.net>:
> > Impact: cleanup
> >
> > Cc: Frédéric Weisbecker <fweisbec@gmail.com>
> > Cc: Steven Rostedt <rostedt@goodmis.org>
> > Cc: Ingo Molnar <mingo@elte.hu>
> > Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
> >
> > diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c
> > index ca017e0..1284145 100644
> > --- a/kernel/trace/trace_branch.c
> > +++ b/kernel/trace/trace_branch.c
> > @@ -133,11 +133,7 @@ static void stop_branch_trace(struct trace_array *tr)
> >
> > static int branch_trace_init(struct trace_array *tr)
> > {
> > - int cpu;
> > -
> > - for_each_online_cpu(cpu)
> > - tracing_reset(tr, cpu);
> > -
> > + tracing_reset_online_cpus(tr);
> > start_branch_trace(tr);
> > return 0;
> > }
> > diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
> > index 66fc7b8..c97594d 100644
> > --- a/kernel/trace/trace_functions_graph.c
> > +++ b/kernel/trace/trace_functions_graph.c
> > @@ -52,15 +52,11 @@ static struct tracer_flags tracer_flags = {
> >
> > static int graph_trace_init(struct trace_array *tr)
> > {
> > - int cpu, ret;
> > -
> > - for_each_online_cpu(cpu)
> > - tracing_reset(tr, cpu);
> > -
> > - ret = register_ftrace_graph(&trace_graph_return,
> > + int ret = register_ftrace_graph(&trace_graph_return,
> > &trace_graph_entry);
> > if (ret)
> > return ret;
> > + tracing_reset_online_cpus(tr);
> > tracing_start_cmdline_record();
> >
> > return 0;
> > diff --git a/kernel/trace/trace_nop.c b/kernel/trace/trace_nop.c
> > index b9767ac..087b6cb 100644
> > --- a/kernel/trace/trace_nop.c
> > +++ b/kernel/trace/trace_nop.c
> > @@ -47,12 +47,8 @@ static void stop_nop_trace(struct trace_array *tr)
> >
> > static int nop_trace_init(struct trace_array *tr)
> > {
> > - int cpu;
> > ctx_trace = tr;
> > -
> > - for_each_online_cpu(cpu)
> > - tracing_reset(tr, cpu);
> > -
> > + tracing_reset_online_cpus(tr);
> > start_nop_trace(tr);
> > return 0;
> > }
> >
>
> Thanks :-)
>
> Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Applied to tip/tracing/ftrace (with your Ack added), thanks guys!
Ingo
prev parent reply other threads:[~2009-01-29 13:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-28 15:02 Arnaldo Carvalho de Melo
2009-01-28 15:06 ` Frédéric Weisbecker
2009-01-29 13:29 ` Ingo Molnar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090129132938.GC24391@elte.hu \
--to=mingo@elte.hu \
--cc=acme@redhat.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®