Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 2023 17:49:38 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b6c9d2a3f892 - main - pmc_events.h: event list formatting
Message-ID:  <202305061749.346Hncri017823@gitrepo.freebsd.org>

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

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

commit b6c9d2a3f892169d4a6acc92869f9d9db52876ea
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2023-05-05 21:57:14 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2023-05-06 17:49:18 +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
---
 sys/dev/hwpmc/pmc_events.h | 48 +++++++++++++++++++++++-----------------------
 1 file changed, 24 insertions(+), 24 deletions(-)

diff --git a/sys/dev/hwpmc/pmc_events.h b/sys/dev/hwpmc/pmc_events.h
index f7963d3b0789..5ab87d1be360 100644
--- a/sys/dev/hwpmc/pmc_events.h
+++ b/sys/dev/hwpmc/pmc_events.h
@@ -2458,30 +2458,30 @@ __PMC_EV_ALIAS("unhalted-reference-cycles", IAF_CPU_CLK_UNHALTED_REF)
  * 0x14600	0x0100		ARM CMN-600 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(PPC7450,	0x13000)	\
-	__PMC_EV_PPC7450()			\
-	__PMC_EV_BLOCK(PPC970,	0x13100)	\
-	__PMC_EV_PPC970()			\
-	__PMC_EV_BLOCK(E500,	0x13300)	\
-	__PMC_EV_E500()				\
-	__PMC_EV_BLOCK(ARMV7,	0x14000)	\
-	__PMC_EV_ARMV7()			\
-	__PMC_EV_BLOCK(ARMV8,	0x14100)	\
-	__PMC_EV_ARMV8()			\
-	__PMC_EV_BLOCK(DMC620_PMU_CD2, 0x14500)	\
-	__PMC_EV_DMC620_PMU_CD2()		\
-	__PMC_EV_BLOCK(DMC620_PMU_C, 0x14520)	\
-	__PMC_EV_DMC620_PMU_C()			\
-	__PMC_EV_BLOCK(CMN600_PMU, 0x14600)	\
+#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(PPC7450,		0x13000)	\
+	__PMC_EV_PPC7450()				\
+	__PMC_EV_BLOCK(PPC970,		0x13100)	\
+	__PMC_EV_PPC970()				\
+	__PMC_EV_BLOCK(E500,		0x13300)	\
+	__PMC_EV_E500()					\
+	__PMC_EV_BLOCK(ARMV7,		0x14000)	\
+	__PMC_EV_ARMV7()				\
+	__PMC_EV_BLOCK(ARMV8,		0x14100)	\
+	__PMC_EV_ARMV8()				\
+	__PMC_EV_BLOCK(DMC620_PMU_CD2,	0x14500)	\
+	__PMC_EV_DMC620_PMU_CD2()			\
+	__PMC_EV_BLOCK(DMC620_PMU_C,	0x14520)	\
+	__PMC_EV_DMC620_PMU_C()				\
+	__PMC_EV_BLOCK(CMN600_PMU,	0x14600)	\
 	__PMC_EV_CMN600_PMU()
 
 #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?202305061749.346Hncri017823>