summaryrefslogtreecommitdiffstats
path: root/sys/sys/pmc.h
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2008-09-28 14:11:34 +0000
committerjkoshy <jkoshy@FreeBSD.org>2008-09-28 14:11:34 +0000
commit61b05e7813664f0ded9c663e62de6b48eccb5393 (patch)
treeafdac0a8396425da73ddb241431bfebb17cf981f /sys/sys/pmc.h
parent9978d5667c4da471cefd5db0a7717d558952c85c (diff)
downloadFreeBSD-src-61b05e7813664f0ded9c663e62de6b48eccb5393.zip
FreeBSD-src-61b05e7813664f0ded9c663e62de6b48eccb5393.tar.gz
Add new PMC classes and CPU types.
Diffstat (limited to 'sys/sys/pmc.h')
-rw-r--r--sys/sys/pmc.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
index 100bdda..e33f431 100644
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2003-2007, Joseph Koshy
+ * Copyright (c) 2003-2008, Joseph Koshy
* Copyright (c) 2007 The FreeBSD Foundation
* All rights reserved.
*
@@ -74,7 +74,10 @@
__PMC_CPU(INTEL_PII, "Intel Pentium II") \
__PMC_CPU(INTEL_PIII, "Intel Pentium III") \
__PMC_CPU(INTEL_PM, "Intel Pentium M") \
- __PMC_CPU(INTEL_PIV, "Intel Pentium IV")
+ __PMC_CPU(INTEL_PIV, "Intel Pentium IV") \
+ __PMC_CPU(INTEL_CORE, "Intel Core Solo/Duo") \
+ __PMC_CPU(INTEL_CORE2,"Intel Core2") \
+ __PMC_CPU(INTEL_ATOM, "Intel Atom")
enum pmc_cputype {
#undef __PMC_CPU
@@ -95,7 +98,9 @@ enum pmc_cputype {
__PMC_CLASS(K8) /* AMD K8 performance counters */ \
__PMC_CLASS(P5) /* Intel Pentium counters */ \
__PMC_CLASS(P6) /* Intel Pentium Pro counters */ \
- __PMC_CLASS(P4) /* Intel Pentium-IV counters */
+ __PMC_CLASS(P4) /* Intel Pentium-IV counters */ \
+ __PMC_CLASS(IAF) /* Intel Core2/Atom, fixed function */ \
+ __PMC_CLASS(IAP) /* Intel Core...Atom, programmable */
enum pmc_class {
#undef __PMC_CLASS
OpenPOWER on IntegriCloud