ArmPMU.py (12286:fb69c03c88e1) ArmPMU.py (12851:a20820ba854c)
1# -*- mode:python -*-
2# Copyright (c) 2009-2014, 2017 ARM Limited
3# All rights reserved.
4#
5# The license below extends only to copyright in the software and shall
6# not be construed as granting a license to any other intellectual
7# property including but not limited to intellectual property relating
8# to a hardware implementation of the functionality of the software

--- 101 unchanged lines hidden (view full) ---

110 configuration scripts to happen closer to the instantiation of
111 the instrumented objects (e.g., the memory system) instead of
112 a central point.
113
114 CPU events should also be registered once per CPU that is
115 sharing the PMU (e.g., when switching between CPU models).
116 """
117
1# -*- mode:python -*-
2# Copyright (c) 2009-2014, 2017 ARM Limited
3# All rights reserved.
4#
5# The license below extends only to copyright in the software and shall
6# not be construed as granting a license to any other intellectual
7# property including but not limited to intellectual property relating
8# to a hardware implementation of the functionality of the software

--- 101 unchanged lines hidden (view full) ---

110 configuration scripts to happen closer to the instantiation of
111 the instrumented objects (e.g., the memory system) instead of
112 a central point.
113
114 CPU events should also be registered once per CPU that is
115 sharing the PMU (e.g., when switching between CPU models).
116 """
117
118 bpred = cpu.branchPred if cpu and not isNullPointer(cpu.branchPred) \
119 else None
118 bpred = getattr(cpu, "branchPred", None) if cpu else None
119 if bpred is not None and isNullPointer(bpred):
120 bpred = None
120
121 self.addEvent(SoftwareIncrement(self,0x00))
122 # 0x01: L1I_CACHE_REFILL
123 self.addEvent(ProbeEvent(self,0x02, itb, "Refills"))
124 # 0x03: L1D_CACHE_REFILL
125 # 0x04: L1D_CACHE
126 self.addEvent(ProbeEvent(self,0x05, dtb, "Refills"))
127 self.addEvent(ProbeEvent(self,0x06, cpu, "RetiredLoads"))

--- 49 unchanged lines hidden ---
121
122 self.addEvent(SoftwareIncrement(self,0x00))
123 # 0x01: L1I_CACHE_REFILL
124 self.addEvent(ProbeEvent(self,0x02, itb, "Refills"))
125 # 0x03: L1D_CACHE_REFILL
126 # 0x04: L1D_CACHE
127 self.addEvent(ProbeEvent(self,0x05, dtb, "Refills"))
128 self.addEvent(ProbeEvent(self,0x06, cpu, "RetiredLoads"))

--- 49 unchanged lines hidden ---