From owner-svn-src-all@freebsd.org Thu Oct 8 10:00:42 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72E6D9D011F; Thu, 8 Oct 2015 10:00:42 +0000 (UTC) (envelope-from fabient@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 307DF1878; Thu, 8 Oct 2015 10:00:42 +0000 (UTC) (envelope-from fabient@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t98A0fCq096035; Thu, 8 Oct 2015 10:00:41 GMT (envelope-from fabient@FreeBSD.org) Received: (from fabient@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t98A0ffp096034; Thu, 8 Oct 2015 10:00:41 GMT (envelope-from fabient@FreeBSD.org) Message-Id: <201510081000.t98A0ffp096034@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fabient set sender to fabient@FreeBSD.org using -f From: Fabien Thomas Date: Thu, 8 Oct 2015 10:00:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289025 - head/sys/sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2015 10:00:42 -0000 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: