public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Peter Zijlstra <peterz@infradead.org>
Cc: "Yan, Zheng" <zheng.z.yan@intel.com>,
	linux-kernel@vger.kernel.org, acme@infradead.org,
	eranian@google.com, andi@firstfloor.org
Subject: Re: [PATCH 4/4] perf/x86/uncore: modularize Intel uncore driver
Date: Wed, 19 Mar 2014 12:53:23 +0100	[thread overview]
Message-ID: <20140319115323.GA18672@gmail.com> (raw)
In-Reply-To: <20140319114247.GI27632@laptop.programming.kicks-ass.net>


* Peter Zijlstra <peterz@infradead.org> wrote:

> On Wed, Mar 19, 2014 at 12:32:54PM +0100, Ingo Molnar wrote:
> > 
> > * Peter Zijlstra <peterz@infradead.org> wrote:
> > 
> > > On Tue, Mar 18, 2014 at 04:56:44PM +0800, Yan, Zheng wrote:
> > > > This patch adds support for building Intel uncore driver as module.
> > > > It adds clean-up code and config option for the Intel uncore driver
> > > > 
> > > > Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
> > > > ---
> > > >  arch/x86/Kconfig                              |  7 ++++
> > > >  arch/x86/configs/i386_defconfig               |  1 +
> > > >  arch/x86/configs/x86_64_defconfig             |  1 +
> > > >  arch/x86/kernel/cpu/Makefile                  |  3 +-
> > > >  arch/x86/kernel/cpu/perf_event_intel_uncore.c | 48 ++++++++++++++++++++++++---
> > > >  5 files changed, 55 insertions(+), 5 deletions(-)
> > > > 
> > > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> > > > index 0af5250..8e4e247 100644
> > > > --- a/arch/x86/Kconfig
> > > > +++ b/arch/x86/Kconfig
> > > > @@ -1103,6 +1103,13 @@ config X86_CPUID
> > > >  	  with major 203 and minors 0 to 31 for /dev/cpu/0/cpuid to
> > > >  	  /dev/cpu/31/cpuid.
> > > >  
> > > > +config X86_INTEL_UNCORE
> > > > +	tristate "Intel uncore performance monitoring support"
> > > > +	depends on CPU_SUP_INTEL
> > > > +	---help---
> > > > +	  This adds a driver to access the Uncore performance monitoring Units
> > > > +	  of Intel processors.
> > > > +
> > > 
> > > Ingo do you agree with this config option placement?
> > 
> > Yeah, the modularization looks mostly good to me, but its name 
> > should lie within the PERF namespace, i.e. 
> > CONFIG_PERF_PMU_X86_INTEL_UNCORE=y.
> 
> Ah; but do you want this config option hidden in the "Processor type 
> and features" menu or would they be better in "General setup/Kernel 
> Performance Events and Counters" ?

What's your preference? There's a vali argument for both: the uncore 
driver is part of the CPU, but it's also a perf driver.

Thanks,

	Ingo

  reply	other threads:[~2014-03-19 11:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-18  8:56 [PATCH 1/4] perf: allow building PMU driver as module Yan, Zheng
2014-03-18  8:56 ` [PATCH 2/4] hrtimer: export __hrtimer_start_range_ns Yan, Zheng
2014-03-19  8:47   ` Peter Zijlstra
2014-03-19  9:53     ` Thomas Gleixner
2014-03-19  9:58       ` Peter Zijlstra
2014-04-18 13:08   ` [tip:perf/core] hrtimer: Export __hrtimer_start_range_ns() tip-bot for Yan, Zheng
2014-03-18  8:56 ` [PATCH 3/4] perf/x86: export perf_assign_events Yan, Zheng
2014-04-18 13:08   ` [tip:perf/core] perf/x86: Export perf_assign_events() tip-bot for Yan, Zheng
2014-03-18  8:56 ` [PATCH 4/4] perf/x86/uncore: modularize Intel uncore driver Yan, Zheng
2014-03-19  8:49   ` Peter Zijlstra
2014-03-19 11:32     ` Ingo Molnar
2014-03-19 11:42       ` Peter Zijlstra
2014-03-19 11:53         ` Ingo Molnar [this message]
2014-03-19 12:44           ` Peter Zijlstra
2014-03-19 12:55             ` Ingo Molnar
2014-03-20 15:01   ` Vince Weaver
2014-03-20 15:50     ` Andi Kleen
2014-04-18 13:08 ` [tip:perf/core] perf: Allow building PMU drivers as modules tip-bot for Yan, Zheng

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=20140319115323.GA18672@gmail.com \
    --to=mingo@kernel.org \
    --cc=acme@infradead.org \
    --cc=andi@firstfloor.org \
    --cc=eranian@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=zheng.z.yan@intel.com \
    /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