Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jun 2023 19:58:02 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 2fc54435a6c4 - stable/13 - pmc_events.h: event list formatting
Message-ID:  <202306091958.359Jw2uj072043@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=2fc54435a6c4874aeacd027faf18f1ad64b5492d

commit 2fc54435a6c4874aeacd027faf18f1ad64b5492d
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2023-05-05 21:57:14 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2023-06-09 18:14:58 +0000

    pmc_events.h: event list formatting
    
    Improve the legibility of the list. Bump overall indentation, fix some
    whitespace, and sort the IAF block.
    
    Reviewed by:    jkoshy
    MFC after:      2 weeks
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D39903
    
    (cherry picked from commit b6c9d2a3f892169d4a6acc92869f9d9db52876ea)
---
 sys/dev/hwpmc/pmc_events.h | 56 +++++++++++++++++++++++-----------------------
 1 file changed, 28 insertions(+), 28 deletions(-)

diff --git a/sys/dev/hwpmc/pmc_events.h b/sys/dev/hwpmc/pmc_events.h
index 7a3ef832b47c..6df2ef4d82d7 100644
--- a/sys/dev/hwpmc/pmc_events.h
+++ b/sys/dev/hwpmc/pmc_events.h
@@ -1843,34 +1843,34 @@ __PMC_EV_ALIAS("unhalted-reference-cycles", IAF_CPU_CLK_UNHALTED_REF)
  * 0x14100	0x0100		ARMv8 events
  * 0x20000	0x1000		Software events
  */
-#define	__PMC_EVENTS()				\
-	__PMC_EV_BLOCK(TSC,	0x01000)	\
-	__PMC_EV_TSC()				\
-	__PMC_EV_BLOCK(IAF,     0x10000)	\
-	__PMC_EV_IAF()				\
-	__PMC_EV_BLOCK(K7,	0x2000)		\
-	__PMC_EV_K7()				\
-	__PMC_EV_BLOCK(K8,	0x2080)	        \
-	__PMC_EV_K8()				\
-	__PMC_EV_BLOCK(MIPS24K,	0x11300)	\
-	__PMC_EV_MIPS24K()			\
-	__PMC_EV_BLOCK(OCTEON,	0x11400)	\
-	__PMC_EV_OCTEON()			\
-	__PMC_EV_BLOCK(MIPS74K,	0x11500)        \
-	__PMC_EV_MIPS74K()			\
-	__PMC_EV_BLOCK(BERI,	0x11600)        \
-	__PMC_EV_BERI()				\
-	__PMC_EV_BLOCK(PPC7450,	0x13000)	\
-	__PMC_EV_PPC7450()			\
-	__PMC_EV_BLOCK(PPC970,	0x13100)	\
-	__PMC_EV_PPC970()			\
-	__PMC_EV_BLOCK(POWER8,	0x13200)	\
-	__PMC_EV_POWER8()			\
-	__PMC_EV_BLOCK(E500,	0x13300)	\
-	__PMC_EV_E500()				\
-	__PMC_EV_BLOCK(ARMV7,	0x14000)	\
-	__PMC_EV_ARMV7()			\
-	__PMC_EV_BLOCK(ARMV8,	0x14100)	\
+#define	__PMC_EVENTS()					\
+	__PMC_EV_BLOCK(TSC,		0x01000)	\
+	__PMC_EV_TSC()					\
+	__PMC_EV_BLOCK(K7,		0x02000)	\
+	__PMC_EV_K7()					\
+	__PMC_EV_BLOCK(K8,		0x02080)	\
+	__PMC_EV_K8()					\
+	__PMC_EV_BLOCK(IAF,		0x10000)	\
+	__PMC_EV_IAF()					\
+	__PMC_EV_BLOCK(MIPS24K,		0x11300)	\
+	__PMC_EV_MIPS24K()				\
+	__PMC_EV_BLOCK(OCTEON,		0x11400)	\
+	__PMC_EV_OCTEON()				\
+	__PMC_EV_BLOCK(MIPS74K,		0x11500)	\
+	__PMC_EV_MIPS74K()				\
+	__PMC_EV_BLOCK(BERI,		0x11600)	\
+	__PMC_EV_BERI()					\
+	__PMC_EV_BLOCK(PPC7450,		0x13000)	\
+	__PMC_EV_PPC7450()				\
+	__PMC_EV_BLOCK(PPC970,		0x13100)	\
+	__PMC_EV_PPC970()				\
+	__PMC_EV_BLOCK(POWER8,		0x13200)	\
+	__PMC_EV_POWER8()				\
+	__PMC_EV_BLOCK(E500,		0x13300)	\
+	__PMC_EV_E500()					\
+	__PMC_EV_BLOCK(ARMV7,		0x14000)	\
+	__PMC_EV_ARMV7()				\
+	__PMC_EV_BLOCK(ARMV8,		0x14100)	\
 	__PMC_EV_ARMV8()
 
 #define	PMC_EVENT_FIRST	PMC_EV_TSC_TSC



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