29#ifndef __CPU_PROBES_INST_TRACKER_HH__
30#define __CPU_PROBES_INST_TRACKER_HH__
32#include <unordered_set>
34#include "debug/InstTracker.hh"
35#include "params/GlobalInstTracker.hh"
36#include "params/LocalInstTracker.hh"
116 DPRINTF(InstTracker,
"adding the instruction threshold %lu\n",
130 DPRINTF(InstTracker,
"Resetting the instruction counter\n"
134 std::unordered_set<uint64_t>
144 DPRINTF(InstTracker,
"Resetting the instruction thresholds\n");
std::unordered_set< uint64_t > instThresholdSet
a set of thresholds for the number of instructions that should be executed before the simulation exit...
void addThreshold(uint64_t new_threshold)
uint64_t instCount
the number of instructions that have been executed across all the cores
uint64_t getCounter() const
std::unordered_set< uint64_t > getThresholds() const
void updateAndCheckInstCount(const uint64_t &inst)
this function is called by the LocalInstTracker object to update the instruction count and check if t...
virtual void regProbeListeners()
setup the probelistener
bool ifListening
a boolean variable that determines if the LocalInstTracker is listening to the ProbePoints or not
GlobalInstTracker * globalInstTracker
the pointer to the GlobalInstTracker object.
void stopListening()
stop listening to the ProbePoints
ProbeListenerArg< LocalInstTracker, uint64_t > LocalInstTrackerListener
void retiredInstsHandler(const uint64_t &inst)
this function is called when the ProbePoint "RetiredInsts" is notified
void startListening()
start listening to the ProbePoints
ProbeListenerArg generates a listener for the class of Arg and the class type T which is the class co...
This class is a minimal wrapper around SimObject.
Abstract superclass for simulation objects.
const Params & params() const
Copyright (c) 2024 Arm Limited All rights reserved.