From: Ingo Molnar <mingo@elte.hu>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Arjan van de Ven <arjan@infradead.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] ftrace: Add a C-state tracer to help power optimization
Date: Sun, 5 Oct 2008 11:53:26 +0200 [thread overview]
Message-ID: <20081005095326.GD29909@elte.hu> (raw)
In-Reply-To: <alpine.DEB.1.10.0810041410390.6571@gandalf.stny.rr.com>
* Steven Rostedt <rostedt@goodmis.org> wrote:
>
> My comments are more towards Ingo than to Arjan.
>
> On Sat, 4 Oct 2008, Arjan van de Ven wrote:
> > +++ b/kernel/trace/Kconfig
> > @@ -134,6 +134,17 @@ config BOOT_TRACER
> > be enabled if this tracer is selected since only one tracer
> > should touch the tracing buffer at a time.
> >
> > +config CSTATE_TRACER
> > + bool "Trace C-state behavior"
> > + depends on HAVE_FTRACE
>
> Ingo, here's the confusion again between the FTRACE infrastructure and
> the ftrace "function tracer". the HAVE_FTRACE should really be
> HAVE_FUNCTION_TRACER. The infrastructure of a lot of the ftrace
> tracers do not depend on the function tracer.
>
> The CSTATE_TRACER also does not depend on HAVE_FTRACE. Think we should
> rename this? Otherwise more kernel developers will get confused by it.
> :-(
agreed, please send a rename patch to make it more consistent.
> > +static enum print_line_t cstate_print_line(struct trace_iterator *iter)
> > +{
> > + int ret;
> > + struct trace_entry *entry = iter->ent;
> > + struct trace_cstate *field = (struct trace_cstate *)entry;
>
> Ingo, isn't the trace_assign_type in your latest tree?
yeah, it is, and it should be used here instead of a direct cast.
Ingo
prev parent reply other threads:[~2008-10-05 9:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-04 17:54 [PATCH v2] ftrace: Add a C-state tracer to help power optimization Arjan van de Ven
2008-10-04 18:17 ` Steven Rostedt
2008-10-04 18:29 ` Arjan van de Ven
2008-10-06 16:52 ` Peter Zijlstra
2008-10-06 16:57 ` Arjan van de Ven
2008-10-05 9:53 ` 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=20081005095326.GD29909@elte.hu \
--to=mingo@elte.hu \
--cc=arjan@infradead.org \
--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