Skip to contentSkip to conversation

xenoprof: Add support for AMD Family 15h processors

PATCH Jan Beulich 2 participants 2 messages May 5, 2011 – May 10, 2011

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines
Quoted 1 line
Quoted 1 line · Jacob Shin
xen/include/asm-x86/msr-index.h +3 -0
@@ -223,6 +223,19 @@
 #define MSR_K8_ENABLE_C1E		0xc0010055
 #define MSR_K8_VM_CR			0xc0010114
 #define MSR_K8_VM_HSAVE_PA		0xc0010117
+
+#define MSR_FAM15H_EVNTSEL0		0xc0010200
+#define MSR_FAM15H_PERFCTR0		0xc0010201

xen/include/asm-x86/msr-index.h line 238

Quoted 10 lines
xen/include/asm-x86/msr-index.h +10 -0
+#define MSR_FAM15H_EVNTSEL1		0xc0010202
+#define MSR_FAM15H_PERFCTR1		0xc0010203
+#define MSR_FAM15H_EVNTSEL2		0xc0010204
+#define MSR_FAM15H_PERFCTR2		0xc0010205
+#define MSR_FAM15H_EVNTSEL3		0xc0010206
+#define MSR_FAM15H_PERFCTR3		0xc0010207
+#define MSR_FAM15H_EVNTSEL4		0xc0010208
+#define MSR_FAM15H_PERFCTR4		0xc0010209
+#define MSR_FAM15H_EVNTSEL5		0xc001020a
+#define MSR_FAM15H_PERFCTR5		0xc001020b

Oh, and all of these would better have AMD in their name, too (other than K8, which really can be considered a product name, Fam15 is too generic imo, as any vendor could have such at some point).

Jan

Quoted 9 lines
xen/include/asm-x86/msr-index.h +0 -0
 #define MSR_K8_FEATURE_MASK		0xc0011004
 #define MSR_K8_EXT_FEATURE_MASK		0xc0011005
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 17 lines · Jan Beulich
Quoted 17 lines
Quoted 1 line
Quoted 1 line · Jacob Shin
xen/include/asm-x86/msr-index.h +10 -0
@@ -223,6 +223,19 @@
  #define MSR_K8_ENABLE_C1E		0xc0010055
  #define MSR_K8_VM_CR			0xc0010114
  #define MSR_K8_VM_HSAVE_PA		0xc0010117
+
+#define MSR_FAM15H_EVNTSEL0		0xc0010200
+#define MSR_FAM15H_PERFCTR0		0xc0010201
+#define MSR_FAM15H_EVNTSEL1		0xc0010202
+#define MSR_FAM15H_PERFCTR1		0xc0010203
+#define MSR_FAM15H_EVNTSEL2		0xc0010204
+#define MSR_FAM15H_PERFCTR2		0xc0010205
+#define MSR_FAM15H_EVNTSEL3		0xc0010206
+#define MSR_FAM15H_PERFCTR3		0xc0010207
+#define MSR_FAM15H_EVNTSEL4		0xc0010208
Quoted 9 lines

xen/include/asm-x86/msr-index.h line 238

Quoted 3 lines
xen/include/asm-x86/msr-index.h +3 -0
+#define MSR_FAM15H_PERFCTR4		0xc0010209
+#define MSR_FAM15H_EVNTSEL5		0xc001020a
+#define MSR_FAM15H_PERFCTR5		0xc001020b

Oh, and all of these would better have AMD in their name, too (other than K8, which really can be considered a product name, Fam15 is too generic imo, as any vendor could have such at some point).

Sounds good, I'll have a revised patchset with the changes later this afternoon.

Thanks!