Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Oct 2015 10:00:41 +0000 (UTC)
From:      Fabien Thomas <fabient@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289025 - head/sys/sys
Message-ID:  <201510081000.t98A0ffp096034@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fabient
Date: Thu Oct  8 10:00:41 2015
New Revision: 289025
URL: https://svnweb.freebsd.org/changeset/base/289025

Log:
  Fix r283120 which use class size larger than 8bits.
  The new mapping will restore binary compatibility with stable_10
  but file generated since r283120 are broken.
  
  Reviewed by:	jhb
  Sponsored by:	Stormshield

Modified:
  head/sys/sys/pmc.h

Modified: head/sys/sys/pmc.h
==============================================================================
--- head/sys/sys/pmc.h	Thu Oct  8 09:54:33 2015	(r289024)
+++ head/sys/sys/pmc.h	Thu Oct  8 10:00:41 2015	(r289025)
@@ -128,26 +128,26 @@ enum pmc_cputype {
  */
 
 #define	__PMC_CLASSES()							\
-	__PMC_CLASS(TSC,	0x000,	"CPU Timestamp counter")	\
-	__PMC_CLASS(K7,		0x100,	"AMD K7 performance counters")	\
-	__PMC_CLASS(K8,		0x101,	"AMD K8 performance counters")	\
-	__PMC_CLASS(P5,		0x102,	"Intel Pentium counters")	\
-	__PMC_CLASS(P6,		0x103,	"Intel Pentium Pro counters")	\
-	__PMC_CLASS(P4,		0x104,	"Intel Pentium-IV counters")	\
-	__PMC_CLASS(IAF,	0x105,	"Intel Core2/Atom, fixed function") \
-	__PMC_CLASS(IAP,	0x106,	"Intel Core...Atom, programmable") \
-	__PMC_CLASS(UCF,	0x107,	"Intel Uncore fixed function")	\
-	__PMC_CLASS(UCP,	0x108,	"Intel Uncore programmable")	\
-	__PMC_CLASS(XSCALE,	0x200,	"Intel XScale counters")	\
-	__PMC_CLASS(ARMV7,	0x201,	"ARMv7")			\
-	__PMC_CLASS(ARMV8,	0x202,	"ARMv8")			\
-	__PMC_CLASS(MIPS24K,	0x300,	"MIPS 24K")			\
-	__PMC_CLASS(OCTEON,	0x301,	"Cavium Octeon")		\
-	__PMC_CLASS(MIPS74K,	0x302,	"MIPS 74K")			\
-	__PMC_CLASS(PPC7450,	0x400,	"Motorola MPC7450 class")	\
-	__PMC_CLASS(PPC970,	0x401,	"IBM PowerPC 970 class")	\
-	__PMC_CLASS(E500,	0x402,	"Freescale e500 class")		\
-	__PMC_CLASS(SOFT,	0x8000,	"Software events")
+	__PMC_CLASS(TSC,	0x00,	"CPU Timestamp counter")	\
+	__PMC_CLASS(K7,		0x01,	"AMD K7 performance counters")	\
+	__PMC_CLASS(K8,		0x02,	"AMD K8 performance counters")	\
+	__PMC_CLASS(P5,		0x03,	"Intel Pentium counters")	\
+	__PMC_CLASS(P6,		0x04,	"Intel Pentium Pro counters")	\
+	__PMC_CLASS(P4,		0x05,	"Intel Pentium-IV counters")	\
+	__PMC_CLASS(IAF,	0x06,	"Intel Core2/Atom, fixed function") \
+	__PMC_CLASS(IAP,	0x07,	"Intel Core...Atom, programmable") \
+	__PMC_CLASS(UCF,	0x08,	"Intel Uncore fixed function")	\
+	__PMC_CLASS(UCP,	0x09,	"Intel Uncore programmable")	\
+	__PMC_CLASS(XSCALE,	0x0A,	"Intel XScale counters")	\
+	__PMC_CLASS(MIPS24K,	0x0B,	"MIPS 24K")			\
+	__PMC_CLASS(OCTEON,	0x0C,	"Cavium Octeon")		\
+	__PMC_CLASS(PPC7450,	0x0D,	"Motorola MPC7450 class")	\
+	__PMC_CLASS(PPC970,	0x0E,	"IBM PowerPC 970 class")	\
+	__PMC_CLASS(SOFT,	0x0F,	"Software events")		\
+	__PMC_CLASS(ARMV7,	0x10,	"ARMv7")			\
+	__PMC_CLASS(ARMV8,	0x11,	"ARMv8")			\
+	__PMC_CLASS(MIPS74K,	0x12,	"MIPS 74K")			\
+	__PMC_CLASS(E500,	0x13,	"Freescale e500 class")
 
 enum pmc_class {
 #undef  __PMC_CLASS
@@ -156,7 +156,7 @@ enum pmc_class {
 };
 
 #define	PMC_CLASS_FIRST	PMC_CLASS_TSC
-#define	PMC_CLASS_LAST	PMC_CLASS_SOFT
+#define	PMC_CLASS_LAST	PMC_CLASS_E500
 
 /*
  * A PMC can be in the following states:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510081000.t98A0ffp096034>