[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: Add Xenoprofile support for AMD Family16h


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Wed, 13 Feb 2013 17:11:10 +0000
  • Delivery-date: Wed, 13 Feb 2013 17:11:18 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Suravee Suthikulpanit <suravee.suthikulpanit@xxxxxxx>
# Date 1360664334 -3600
# Node ID 9af6e566befe5516e66b62197813aa22e1d7122c
# Parent  171018fef8f882aeb7acf8279d0f4c5befb2b6ea
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@xxxxxxx>
Committed-by: Jan Beulich <jbeulich@xxxxxxxx>
---


diff -r 171018fef8f8 -r 9af6e566befe xen/arch/x86/hvm/svm/vpmu.c
--- a/xen/arch/x86/hvm/svm/vpmu.c       Tue Feb 12 11:12:22 2013 +0100
+++ b/xen/arch/x86/hvm/svm/vpmu.c       Tue Feb 12 11:18:54 2013 +0100
@@ -314,6 +314,7 @@ static int amd_vpmu_initialise(struct vc
         case 0x10:
         case 0x12:
         case 0x14:
+        case 0x16:
         default:
             num_counters = F10H_NUM_COUNTERS;
             counters = AMD_F10H_COUNTERS;
@@ -375,6 +376,7 @@ int svm_vpmu_initialise(struct vcpu *v, 
     case 0x12:
     case 0x14:
     case 0x15:
+    case 0x16:
         ret = amd_vpmu_initialise(v);
         if ( !ret )
             vpmu->arch_vpmu_ops = &amd_vpmu_ops;
diff -r 171018fef8f8 -r 9af6e566befe xen/arch/x86/oprofile/nmi_int.c
--- a/xen/arch/x86/oprofile/nmi_int.c   Tue Feb 12 11:12:22 2013 +0100
+++ b/xen/arch/x86/oprofile/nmi_int.c   Tue Feb 12 11:18:54 2013 +0100
@@ -415,6 +415,10 @@ static int __init nmi_init(void)
                                 model = &op_amd_fam15h_spec;
                                 cpu_type = "x86-64/family15h";
                                 break;
+                       case 0x16:
+                               model = &op_athlon_spec;
+                               cpu_type = "x86-64/family16h";
+                               break;
                        }
                        break;
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.