Skip to contentSkip to conversation

support Model-30 Corei7 in Oprofile

PATCH New nick black 1 participant 1 message May 4, 2010 x86

lore
Share & tools
lore

nick black

author
#0 lore raw

PATCH 1/1 support Model-30 Corei7 in Oprofile

Howdy! OProfile doesn't recognize my QM720 Core i7. It knows about Model 26, but not Model 30. This one-liner, taken against 2.6.34-rc6, addresses that.

---
I sent a very similar patch to DynamoRIO this weekend. Not many Model-30's in use yet?

home/dank/local/linux-2.6.34-rc6//arch/x86/oprofile/nmi_int.c renamed from arch/x86/oprofile/nmi_int.c +1 -0
diff -uprN linux-2.6.34-rc6/arch/x86/oprofile/nmi_int.c /home/dank/local/linux-2.6.34-rc6//arch/x86/oprofile/nmi_int.c
@@ -601,6 +601,7 @@ static int __init ppro_init(char **cpu_t
 		break;
 	case 0x2e:
 	case 26:
+	case 30:
 		spec = &op_arch_perfmon_spec;
 		*cpu_type = "i386/core_i7";
 		break;
Signature · 3 lines
                                       Nick Black <[email protected]>
                                  Grad student, GT College of Computing
                    "np: the class of dashed hopes, and idle dreams..."