From: Frederic Weisbecker <fweisbec@gmail.com>
To: Vincent Guittot <vincent.guittot@linaro.org>
Cc: linux-kernel@vger.kernel.org, linux-hotplug@vger.kernel.org,
Steven Rostedt <rostedt@goodmis.org>, Ingo Molnar <mingo@elte.hu>,
Rusty Russell <rusty@rustcorp.com.au>,
Amit Kucheria <amit.kucheria@linaro.org>
Subject: Re: [PATCH] tracing, perf : add cpu hotplug trace events
Date: Fri, 14 Jan 2011 18:35:20 +0000 [thread overview]
Message-ID: <20110114183516.GB1926@nowhere> (raw)
In-Reply-To: <AANLkTi=L3=_2dzHH4Wu6QWXw=AUjxtrAu60xfM3-Qwn4@mail.gmail.com>
On Fri, Jan 07, 2011 at 07:25:08PM +0100, Vincent Guittot wrote:
> On 7 January 2011 16:12, Frederic Weisbecker <fweisbec@gmail.com> wrote:
> >> +
> >> + TP_PROTO(unsigned int type, unsigned int step, unsigned int cpuid),
> >
> > I feel a bit uncomfortable with these opaque type and step.
> >
> > What about splitting the events:
> >
> > cpu_down_start
> > cpu_down_end
> >
> > cpu_up_start
> > cpu_up_end
> >
> > This ways they are much more self-explanatory.
> >
> > I also feel uncomfortable about exposing arch step details in core
> > tracepoints.
> >
> > But if we consider the following sequence:
> >
> > cpu_down() {
> > __cpu_disable() {
> > platform_cpu_disable();
> > }
> > }
> >
> > Then exposing start/end of cpu_disable() makes sense, by way of:
> >
> > cpu_arch_disable_start
> > cpu_arch_disable_end
> >
> > cpu_arch_enable_start
> > cpu_arch_enable_end
> >
> >
> > cpu_arch_die_start
> > cpu_arch_die_end
> >
> > cpu_arch_die_start
> > cpu_arch_die_end
> >
> > Because they are arch events that you can retrieve everywhere, the tracepoints
> > are still called from the code code.
> >
> > Now for the machine part, it's very highly arch specific, most notably for arm
> > so I wonder if it would make more sense to keep that seperate into arch
> > tracepoints.
> >
>
> May be we could find some event names that matches for all system and
> that can be kept in the same file ?
But that's only an ARM concern, right? So ARM can create its own
set of tracepoints for that. If that becomes more widely useful then
we can think about gathering the whole into a single file.
> > How does that all look? I hope I'm not overengineering.
> >
>
> that's could be ok for me, I can find almost the same kind of
> information with this solution. I just wonder what traces are the
> easiest to treat for extracting some latency measurement or to treat
> with other event like the power event.
Hmm, I'm not sure what you mean. You want to know which tracepoints
can be useful to measure latencies? Well, it depends on what kind
of latency you seek in general: scheduler, io, etc...
next prev parent reply other threads:[~2011-01-14 18:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 9:50 [PATCH] tracing, perf : add cpu hotplug trace events Vincent Guittot
2011-01-07 9:33 ` Amit Kucheria
2011-01-07 12:07 ` Vincent Guittot
2011-01-07 15:52 ` Steven Rostedt
2011-01-07 15:12 ` Frederic Weisbecker
2011-01-07 18:25 ` Vincent Guittot
2011-01-14 18:35 ` Frederic Weisbecker [this message]
2011-01-17 13:49 ` Vincent Guittot
2011-01-17 16:21 ` Frederic Weisbecker
2011-01-17 17:33 ` Vincent Guittot
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=20110114183516.GB1926@nowhere \
--to=fweisbec@gmail.com \
--cc=amit.kucheria@linaro.org \
--cc=linux-hotplug@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=rusty@rustcorp.com.au \
--cc=vincent.guittot@linaro.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;
as well as URLs for NNTP newsgroup(s).