Hi,
We installed a perfmon2 enabled kernel on a Intel Core machine laptop. Note this
is not a Core 2 machine. permfon2 did not identify the processor as a Core
processor. Looking through the code it appears that the family 6 model 14
processors are not identified or supported. The attached patch should enable
proper identification of the processor.
-Will
diff --git a/arch/i386/perfmon/perfmon_p6.c b/arch/i386/perfmon/perfmon_p6.c
diff --git a/arch/x86_64/perfmon/perfmon_intel_core.c b/arch/x86_64/perfmon/perfmon_intel_core.c
index 89293a6..ac39630 100644
--- a/arch/x86_64/perfmon/perfmon_intel_core.c
+++ b/arch/x86_64/perfmon/perfmon_intel_core.c
@@ -152,7 +152,10 @@ static int pfm_core_probe_pmu(void)
*
* Intel Core = arch perfmon v2 + PEBS
*/
- if (cpu_data->x86 != 6 || cpu_data->x86_model != 15)
+ if (cpu_data->x86 != 6)
+ return -1;
+
+ if (cpu_data->x86_model != 14 && cpu_data->x86_model != 15)
return -1;
if (!cpu_has_apic) {
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/