Skip to contentSkip to conversation

2.6.17-rc6 perfmon2 patch for review: new i386 files

PATCH Chuck Ebbert 1 participant 1 message Jun 18, 2006

lore
Share & tools
lore
#0 lore raw

In-Reply-To: <[email protected]>
References: <[email protected]>

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

Quoted 7 lines · Kevin Corry
Quoted 2 lines

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.)

arch/i386/perfmon/Kconfig +9 -0
@@ -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
arch/i386/perfmon/Makefile +3 -0
@@ -3,7 +3,10 @@
 # Contributed by Stephane Eranian <[email protected]>
 #
 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
Signature · 2 lines
Chuck
 "You can't read a newspaper if you can't read."  --George W. Bush