summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2011-12-24 19:34:52 +0000
committerjhibbits <jhibbits@FreeBSD.org>2011-12-24 19:34:52 +0000
commit8eb9e6b5487506b4d0f3e50d440fac3e93baf702 (patch)
treecfe656c61e3dc2689d74c276ee2249f54a375705 /sys/sys
parent710f17be3ba715e7a297bf62e3944f4b95dd9fef (diff)
downloadFreeBSD-src-8eb9e6b5487506b4d0f3e50d440fac3e93baf702.zip
FreeBSD-src-8eb9e6b5487506b4d0f3e50d440fac3e93baf702.tar.gz
Implement hwpmc counting PMC support for PowerPC G4+ (MPC745x/MPC744x).
Sampling is in progress. Approved by: nwhitehorn (mentor) MFC after: 9.0-RELEASE
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/pmc.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
index 8f5f769..53827b4 100644
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -87,7 +87,8 @@
__PMC_CPU(INTEL_COREI7, 0x8B, "Intel Core i7") \
__PMC_CPU(INTEL_WESTMERE, 0x8C, "Intel Westmere") \
__PMC_CPU(INTEL_XSCALE, 0x100, "Intel XScale") \
- __PMC_CPU(MIPS_24K, 0x200, "MIPS 24K")
+ __PMC_CPU(MIPS_24K, 0x200, "MIPS 24K") \
+ __PMC_CPU(PPC_7450, 0x300, "PowerPC MPC7450")
enum pmc_cputype {
#undef __PMC_CPU
@@ -96,7 +97,7 @@ enum pmc_cputype {
};
#define PMC_CPU_FIRST PMC_CPU_AMD_K7
-#define PMC_CPU_LAST PMC_CPU_MIPS_24K
+#define PMC_CPU_LAST PMC_CPU_PPC_7450
/*
* Classes of PMCs
@@ -114,7 +115,8 @@ enum pmc_cputype {
__PMC_CLASS(UCF) /* Intel Uncore fixed function */ \
__PMC_CLASS(UCP) /* Intel Uncore programmable */ \
__PMC_CLASS(XSCALE) /* Intel XScale counters */ \
- __PMC_CLASS(MIPS24K) /* MIPS 24K */
+ __PMC_CLASS(MIPS24K) /* MIPS 24K */ \
+ __PMC_CLASS(PPC7450) /* Motorola MPC7450 class */
enum pmc_class {
#undef __PMC_CLASS
@@ -123,7 +125,7 @@ enum pmc_class {
};
#define PMC_CLASS_FIRST PMC_CLASS_TSC
-#define PMC_CLASS_LAST PMC_CLASS_MIPS24K
+#define PMC_CLASS_LAST PMC_CLASS_PPC7450
/*
* A PMC can be in the following states:
OpenPOWER on IntegriCloud