Messages in this thread Patch in this message | | | Date | Sun, 18 Jun 2006 11:55:58 -0400 | From | Chuck Ebbert <> | Subject | Re: [PATCH 11/16] 2.6.17-rc6 perfmon2 patch for review: new i386 files |
| |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |