All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@linux.intel.com>
To: Len Brown <lenb@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Linux PM list <linux-pm@vger.kernel.org>
Subject: Re: [PATCH 1/2] Support PCU power metrics in turbostat
Date: Tue, 24 Mar 2015 20:19:46 -0700	[thread overview]
Message-ID: <20150325031946.GC15335@tassilo.jf.intel.com> (raw)
In-Reply-To: <CAJvTdK=qKzLSKYNjZ+0Ay7F5CzxKov3db3p2KNk59O1iNK+bLw@mail.gmail.com>

On Tue, Mar 24, 2015 at 05:20:13PM -0400, Len Brown wrote:
> <cc: linux-pm list>
> 
> On Thu, Nov 13, 2014 at 6:19 PM, Andi Kleen <andi@firstfloor.org> wrote:
> > From: Andi Kleen <ak@linux.intel.com>
> >
> > Add support for reading PCU power metrics on Sandy Bridge / Ivy Bridge EP
> > and Haswell Server in turbostat. This is done using the perf ABI,
> > using the perf uncore driver. This requires the kernel to
> > have uncore perf driver support.
> 
> What happens if kernel doesn't include that support?

The data is not displayed.

> > The user has to specify the event group using a new -x option. All
> > more sensible option characters were already taken. When -x is
> > not specified no behavior changes.
> 
> I'm concerned that turbostat cmdline is getting too complicated,
> and this makes that more the case.

Modern computers are complicated. No way around it.

> > However this currently runs into a problem with the uncore
> > driver that only makes us able to monitor a single band.
> > Disabled until this is fixed.

BTW this is fixed. Will update.
> > Custom user metrics would be also possible.
> >
> > The event resolution code is derived from the jevents library
> > (parts of pmu-tools, http://github.com/andikleen/pmu-tools)
> > and is BSD licensed.
> 
> can we put BSD licensed code into utilities that are in the linux
> kernel git tree?

I think so.  There are already some.

-Andi

      reply	other threads:[~2015-03-25  3:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-13 23:19 [PATCH 1/2] Support PCU power metrics in turbostat Andi Kleen
2014-11-13 23:19 ` [PATCH 2/2] turbostat: Add support for uncore frequency band monitoring Andi Kleen
2015-03-24 21:20 ` [PATCH 1/2] Support PCU power metrics in turbostat Len Brown
2015-03-25  3:19   ` Andi Kleen [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=20150325031946.GC15335@tassilo.jf.intel.com \
    --to=ak@linux.intel.com \
    --cc=andi@firstfloor.org \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.