public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Chuck Ebbert <76306.1226@compuserve.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 11/16] 2.6.17-rc6 perfmon2 patch for review: new i386 files
Date: Sun, 18 Jun 2006 11:55:58 -0400	[thread overview]
Message-ID: <200606181158_MC3-1-C2CA-FA@compuserve.com> (raw)

In-Reply-To: <200606180724.08069.kevcorry@us.ibm.com>
References: <200606180724.08069.kevcorry@us.ibm.com>

[mailer forgot to copy l-k, resending just to there with updates]

On Sun, 18 Jun 2006 07:24:07 -0500, Kevin Corry wrote:

> > What do I pick for i386 kernel on Athlon64 hardware?  P6?  There's no help
> > for that (or Athlon/Sempron processors.)
> 
> P6 is only for Intel Pentium-Pro, Pentium-II, Pentium-III, and Pentium-M.
>
> See arch/x86_64/perfmon/Kconfig for the config options for AMD Athlon64 and 
> Intel EM64T.

What I want is K8 perfmon counters on i386 kernel.  This seems to
work.  (Can it be this easy?  The counters really do work.)

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>

--- 2.6.17-rc6-32-pfmon.orig/arch/i386/perfmon/Kconfig
+++ 2.6.17-rc6-32-pfmon/arch/i386/perfmon/Kconfig
@@ -8,6 +8,15 @@ config PERFMON
  	  in the kernel. See <http://perfmon2.sf.net/> for
  	  more details. If you're unsure, say Y.
 
+config I386_PERFMON_K8
+	tristate "Support AMD X86-64/Sempron generic hardware performance counters"
+	depends on PERFMON
+	default m
+	help
+	Enables support for the generic AMD X86-64/Sempron hardware
+	performance counters.
+	If unsure, say m.
+
  config PERFMON_P6
 	tristate "Support for P6/Pentium M processor hardware performance counters"
 	depends on PERFMON
--- 2.6.17-rc6-32-pfmon.orig/arch/i386/perfmon/Makefile
+++ 2.6.17-rc6-32-pfmon/arch/i386/perfmon/Makefile
@@ -3,7 +3,10 @@
 # Contributed by Stephane Eranian <eranian@hpl.hp.com>
 #
 obj-$(CONFIG_PERFMON)		+= perfmon.o
+obj-$(CONFIG_I386_PERFMON_K8)	+= perfmon_amd.o
 obj-$(CONFIG_PERFMON_P6)	+= perfmon_p6.o
 obj-$(CONFIG_PERFMON_P4)	+= perfmon_p4.o
 obj-$(CONFIG_PERFMON_GEN_IA32)	+= perfmon_gen_ia32.o
 obj-$(CONFIG_PERFMON_P4_PEBS)	+= perfmon_p4_pebs_smpl.o
+
+perfmon_amd-$(subst m,y,$(CONFIG_I386_PERFMON_K8)) += ../../x86_64/perfmon/perfmon_amd.o
-- 
Chuck
 "You can't read a newspaper if you can't read."  --George W. Bush

             reply	other threads:[~2006-06-18 16:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-18 15:55 Chuck Ebbert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-06-18  6:07 [PATCH 11/16] 2.6.17-rc6 perfmon2 patch for review: new i386 files Chuck Ebbert
2006-06-18 12:24 ` Kevin Corry
2006-06-15  9:07 Stephane Eranian

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=200606181158_MC3-1-C2CA-FA@compuserve.com \
    --to=76306.1226@compuserve.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox