x86: Add Xenoprofile support for AMD Family16h

Add Xenoprofile support for AMD Family16h. The corresponded OProfile
patch has already been submitted to OProfile mailing list.
(http://marc.info/?l=oprofile-list&m=136036136017302&w=2 ).

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Suravee Suthikulpanit committed 2013-02-12 11:18:54 +01:00
1 parent bf56007693
commit 300ef0cb4f
2 files changed
+6

No files matched your search

+2
View File
@@ -314,6 +314,7 @@ static int amd_vpmu_initialise(struct vcpu *v)
case 0x10: case 0x10:
case 0x12: case 0x12:
case 0x14: case 0x14:
case 0x16:
default: default:
num_counters = F10H_NUM_COUNTERS; num_counters = F10H_NUM_COUNTERS;
counters = AMD_F10H_COUNTERS; counters = AMD_F10H_COUNTERS;
@@ -375,6 +376,7 @@ int svm_vpmu_initialise(struct vcpu *v, unsigned int vpmu_flags)
case 0x12: case 0x12:
case 0x14: case 0x14:
case 0x15: case 0x15:
case 0x16:
ret = amd_vpmu_initialise(v); ret = amd_vpmu_initialise(v);
if ( !ret ) if ( !ret )
vpmu->arch_vpmu_ops = &amd_vpmu_ops; vpmu->arch_vpmu_ops = &amd_vpmu_ops;
+4
View File
@@ -415,6 +415,10 @@ static int __init nmi_init(void)
model = &op_amd_fam15h_spec; model = &op_amd_fam15h_spec;
cpu_type = "x86-64/family15h"; cpu_type = "x86-64/family15h";
break; break;
case 0x16:
model = &op_athlon_spec;
cpu_type = "x86-64/family16h";
break;
} }
break; break;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.