mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Arjan van de Ven <arjan@infradead.org>
Cc: mingo@elte.hu, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ftrace: Add a C-state tracer to help power optimization
Date: Sat, 4 Oct 2008 13:15:07 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.1.10.0810041314150.6571@gandalf.stny.rr.com> (raw)
In-Reply-To: <20081004095257.41ba3703@infradead.org>


On Sat, 4 Oct 2008, Arjan van de Ven wrote:

> On Fri, 3 Oct 2008 20:32:51 -0400 (EDT)
> Steven Rostedt <rostedt@goodmis.org> wrote:
> > > +struct trace_cstate {
> > > +	struct trace_entry	ent;
> > > +	struct cstate_trace	state_data;
> > > +};
> > > +
> > 
> > Can you please register this in the trace_assign_type macro.
> > 
> > 	IF_ASSIGN(var, ent, struct trace_cstate, TRACE_BOOT); \
> 
> I don't see this anywhere in the kernel ;(
> 
> > And here, do not typecast. Use the trace_assign_type macro below.
> 
> nor that guy

The two should be in linux-tip. If you are based against mainline, then
no they will not be.

If you are already using linux-tip, try refreshing.


> 
> 
> > 
> > > +	struct cstate_trace *it = &field->state_data;
> > > +	struct trace_seq *s = &iter->seq;
> > > +	struct timespec stamp = ktime_to_timespec(it->stamp);
> > 
> > Also note that iter->ts holds a timestamp counter from bootup in
> > nanosecs. It currently uses the sched_clock to record, but may change
> > later to something a bit better.
> 
> given that some of these clocks stop during idle... I really do care
> about which timestamp is used, tracing idle with a clock that stops
> during idle won't work too well.
> 

OK, I just wanted to let you know about it.

-- Steve


      reply	other threads:[~2008-10-04 17:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-03 23:55 Arjan van de Ven
2008-10-03 23:57 ` [PATCH 2/2] cstate ftrace userland script Arjan van de Ven
2008-10-04  0:32 ` [PATCH] ftrace: Add a C-state tracer to help power optimization Steven Rostedt
2008-10-04  5:33   ` Arjan van de Ven
2008-10-04  5:45     ` Steven Rostedt
2008-10-04  8:32       ` Ingo Molnar
2008-10-04 16:52   ` Arjan van de Ven
2008-10-04 17:15     ` Steven Rostedt [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=alpine.DEB.1.10.0810041314150.6571@gandalf.stny.rr.com \
    --to=rostedt@goodmis.org \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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®