This changeset adds probe points that can be used to implement PMU
counters for TLB stats. The following probes are supported:
* ArmISA::TLB::ppRefills / TLB Refills (TLB insertions)
table[0] = entry;
inserts++;
+ ppRefills->notify(1);
}
void
accesses = readAccesses + writeAccesses + instAccesses;
}
+void
+TLB::regProbePoints()
+{
+ ppRefills.reset(new ProbePoints::PMU(getProbeManager(), "Refills"));
+}
+
Fault
TLB::translateSe(RequestPtr req, ThreadContext *tc, Mode mode,
Translation *translation, bool &delay, bool timing)
#include "mem/request.hh"
#include "params/ArmTLB.hh"
#include "sim/fault_fwd.hh"
+#include "sim/probe/pmu.hh"
#include "sim/tlb.hh"
class ThreadContext;
Stats::Formula misses;
Stats::Formula accesses;
+ /** PMU probe for TLB refills */
+ ProbePoints::PMUUPtr ppRefills;
+
int rangeMRU; //On lookup, only move entries ahead when outside rangeMRU
bool bootUncacheability;
void regStats();
+ void regProbePoints() M5_ATTR_OVERRIDE;
+
/**
* Get the table walker master port. This is used for migrating
* port connections during a CPU takeOverFrom() call. For