summaryrefslogtreecommitdiffstats
path: root/sys/dev/hwpmc/hwpmc_intel.c
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2012-10-19 17:01:27 +0000
committersbruno <sbruno@FreeBSD.org>2012-10-19 17:01:27 +0000
commit90144fd204274df4d4eaa4dd9cda33adbc4556a2 (patch)
treefaf5fb42b29a7c786feb3e6771bc39b65e08d1b9 /sys/dev/hwpmc/hwpmc_intel.c
parentaf31e8843c2cc0ba388a33f341de8da1b50de433 (diff)
downloadFreeBSD-src-90144fd204274df4d4eaa4dd9cda33adbc4556a2.zip
FreeBSD-src-90144fd204274df4d4eaa4dd9cda33adbc4556a2.tar.gz
Update hwpmc to support the Xeon class of Sandybridge processors.
(Model 0x2D /* Per Intel document 253669-044US 08/2012. */) Add manpage to document all the goodness that is available in this processor model. No support for uncore events at this time. Submitted by: hiren panchasara <hiren.panchasara@gmail.com> Reviewed by: jimharris@ fabient@ Obtained from: Yahoo! Inc. MFC after: 2 weeks
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_intel.c')
-rw-r--r--sys/dev/hwpmc/hwpmc_intel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/hwpmc/hwpmc_intel.c b/sys/dev/hwpmc/hwpmc_intel.c
index 6345522..f633ac9 100644
--- a/sys/dev/hwpmc/hwpmc_intel.c
+++ b/sys/dev/hwpmc/hwpmc_intel.c
@@ -146,6 +146,10 @@ pmc_intel_initialize(void)
cputype = PMC_CPU_INTEL_SANDYBRIDGE;
nclasses = 5;
break;
+ case 0x2D: /* Per Intel document 253669-044US 08/2012. */
+ cputype = PMC_CPU_INTEL_SANDYBRIDGE_XEON;
+ nclasses = 3;
+ break;
case 0x3A: /* Per Intel document 253669-043US 05/2012. */
cputype = PMC_CPU_INTEL_IVYBRIDGE;
nclasses = 3;
@@ -191,6 +195,7 @@ pmc_intel_initialize(void)
case PMC_CPU_INTEL_IVYBRIDGE:
case PMC_CPU_INTEL_SANDYBRIDGE:
case PMC_CPU_INTEL_WESTMERE:
+ case PMC_CPU_INTEL_SANDYBRIDGE_XEON:
error = pmc_core_initialize(pmc_mdep, ncpus);
break;
@@ -274,6 +279,7 @@ pmc_intel_finalize(struct pmc_mdep *md)
case PMC_CPU_INTEL_IVYBRIDGE:
case PMC_CPU_INTEL_SANDYBRIDGE:
case PMC_CPU_INTEL_WESTMERE:
+ case PMC_CPU_INTEL_SANDYBRIDGE_XEON:
pmc_core_finalize(md);
break;
OpenPOWER on IntegriCloud