Linux Hotplug development
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Vincent Guittot <vincent.guittot@linaro.org>
Cc: linux-kernel@vger.kernel.org, linux-hotplug@vger.kernel.org,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Steven Rostedt <rostedt@goodmis.org>,
	amit.kucheria@linaro.org, Rusty Russell <rusty@rustcorp.com.au>,
	Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH V5 2/2] tracing, perf : add cpu hotplug trace events
Date: Wed, 02 Mar 2011 21:12:01 +0000	[thread overview]
Message-ID: <alpine.LFD.2.00.1103022201440.2701@localhost6.localdomain6> (raw)
In-Reply-To: <AANLkTikqp9=w+2r+Swe_4O9v=MiD=1tjCGrOQc9grHxk@mail.gmail.com>

Vincent,

On Wed, 2 Mar 2011, Vincent Guittot wrote:
> On 2 March 2011 11:08, Thomas Gleixner <tglx@linutronix.de> wrote:
> > On Mon, 28 Feb 2011, Vincent Guittot wrote:
> >> The goal is to monitor the cpu hotplug activity and duration. I want
> >> to detect 2 kind of cpu_down/cpu_up call, ones which succeed to
> >> unplug/plug a core and ones which don't. But I'm not sure that we need
> >> to sort the failed calls into to the trace. We trace them because too
> >> much fails could point out a bug or a wrong use of cpu hotplug.
> >
> > This does not make sense at all. You want to see the failures, then
> > recording the error code makes even more sense. Your way of decoding
> > the error case by checking whether the next trace entry is there or
> > missing is just sloppy.
> >
> 
> The 1st goal was to focus on profiling and to make trace events as
> simple as possible but I agree that having all information is a better
> option. We can add a parameter in the trace which gets the return code
> or some test result like the value of cpu_hotplug_disabled.

That's neither a question of focus nor of better options.

The main point is correctness and usefulness. When we add new
facilities or infrastructure we want to make sure that they are
general useful and correct for all possible use cases we can imagine
at that point in time.

So yes, I understand your reasoning and your focus on your primary
interest, but I also want you to understand that this kind of review
has a very practical background (i.e. maintainability) and is not just
the annoying bullying people around conducted by grumpy old men.
 
Thanks,

	tglx

  reply	other threads:[~2011-03-02 21:12 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24 17:33 [PATCH V5 2/2] tracing, perf : add cpu hotplug trace events Vincent Guittot
2011-02-24 18:40 ` Thomas Gleixner
2011-02-28 13:36   ` Vincent Guittot
2011-03-02 10:08     ` Thomas Gleixner
2011-03-02 19:02       ` Vincent Guittot
2011-03-02 21:12         ` Thomas Gleixner [this message]
2011-02-24 18:46 ` Peter Zijlstra
2011-02-24 20:11   ` Alan Cox
2011-02-24 20:16     ` Thomas Gleixner
2011-02-24 20:24       ` Nicolas Pitre
2011-02-24 20:30         ` Peter Zijlstra
2011-02-24 20:40           ` Alan Cox
2011-02-24 20:40           ` Nicolas Pitre
2011-02-24 20:49             ` Peter Zijlstra
2011-02-24 20:49             ` Thomas Gleixner
2011-02-24 21:04               ` Alan Cox
2011-02-24 21:12                 ` Thomas Gleixner
2011-02-24 21:17                   ` Peter Zijlstra
2011-02-24 21:33                     ` Thomas Gleixner
2011-02-24 20:47           ` Thomas Gleixner
2011-02-24 20:58             ` Peter Zijlstra
2011-02-24 21:03               ` Thomas Gleixner
2011-02-24 21:11               ` Paul E. McKenney
2011-02-24 20:27     ` Peter Zijlstra

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.LFD.2.00.1103022201440.2701@localhost6.localdomain6 \
    --to=tglx@linutronix.de \
    --cc=amit.kucheria@linaro.org \
    --cc=fweisbec@gmail.com \
    --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