arch-arm: add official names to all PMU events
authorCiro Santilli <ciro.santilli@arm.com>
Thu, 19 Nov 2020 12:19:49 +0000 (12:19 +0000)
committerCiro Santilli <ciro.santilli@arm.com>
Thu, 26 Nov 2020 16:25:10 +0000 (16:25 +0000)
Change-Id: I1d44ffa540b0cf175f279c6509839ad2dd69017a
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37976
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/ArmPMU.py

index c712a97b6b8a08a1c146898fba5a1ca5f58262b0..18390107edec867b04f2d5f714744f48f051ceb2 100644 (file)
@@ -117,14 +117,20 @@ class ArmPMU(SimObject):
         if bpred is not None and isNullPointer(bpred):
             bpred = None
 
+        # 0x00: SW_INCR
         self.addEvent(SoftwareIncrement(self,0x00))
         # 0x01: L1I_CACHE_REFILL
+        # 0x02: L1I_TLB_REFILL,
         self.addEvent(ProbeEvent(self,0x02, itb, "Refills"))
         # 0x03: L1D_CACHE_REFILL
         # 0x04: L1D_CACHE
+        # 0x05: L1D_TLB_REFILL
         self.addEvent(ProbeEvent(self,0x05, dtb, "Refills"))
+        # 0x06: LD_RETIRED
         self.addEvent(ProbeEvent(self,0x06, cpu, "RetiredLoads"))
+        # 0x07: ST_RETIRED
         self.addEvent(ProbeEvent(self,0x07, cpu, "RetiredStores"))
+        # 0x08: INST_RETIRED
         self.addEvent(ProbeEvent(self,0x08, cpu, "RetiredInsts"))
         # 0x09: EXC_TAKEN
         # 0x0A: EXC_RETURN
@@ -133,10 +139,14 @@ class ArmPMU(SimObject):
         # 0x0D: BR_IMMED_RETIRED
         # 0x0E: BR_RETURN_RETIRED
         # 0x0F: UNALIGEND_LDST_RETIRED
+        # 0x10: BR_MIS_PRED
         self.addEvent(ProbeEvent(self,0x10, bpred, "Misses"))
+        # 0x11: CPU_CYCLES
         self.addEvent(ProbeEvent(self, ARCH_EVENT_CORE_CYCLES, cpu,
                                  "ActiveCycles"))
+        # 0x12: BR_PRED
         self.addEvent(ProbeEvent(self,0x12, bpred, "Branches"))
+        # 0x13: MEM_ACCESS
         self.addEvent(ProbeEvent(self,0x13, cpu, "RetiredLoads",
                                  "RetiredStores"))
         # 0x14: L1I_CACHE
@@ -152,6 +162,7 @@ class ArmPMU(SimObject):
         # 0x1E: CHAIN
         # 0x1F: L1D_CACHE_ALLOCATE
         # 0x20: L2D_CACHE_ALLOCATE
+        # 0x21: BR_RETIRED
         self.addEvent(ProbeEvent(self,0x21, cpu, "RetiredBranches"))
         # 0x22: BR_MIS_PRED_RETIRED
         # 0x23: STALL_FRONTEND