29#ifndef __CPU_PROBES_PC_COUNT_TRACKER_MANAGER_HH__
30#define __CPU_PROBES_PC_COUNT_TRACKER_MANAGER_HH__
32#include <unordered_map>
33#include <unordered_set>
36#include "params/PcCountTrackerManager.hh"
38#include "debug/PcCountTracker.hh"
115 s += itr->to_string();
int getPcCount(Addr pc) const
this function returns the corresponding value of count for the inputted Program Counter address.
bool ifListNotEmpty
when all the PC Count pairs in the targetPair are encountered, and the PCCOUNTTRACK_END exit event is...
std::unordered_map< Addr, int > counter
a counter that stores all the target PC addresses and the number of times the target PC has been exec...
PcCountTrackerManager(const PcCountTrackerManagerParams ¶ms)
PcCountPair getCurrentPcCountPair() const
this function returns the current PC Count pair
std::unordered_set< PcCountPair, PcCountPair::HashFunction > targetPair
a set that stores all the PC Count pairs that should raise an exit event at
PcCountPair currentPair
the current PC Count pair
std::string printAllTargets() const
this function print all targets
void checkCount(Addr pc)
this function is called when PcCountTrackerProbeListener finds a target PC
Abstract superclass for simulation objects.
const Params & params() const
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Enable hashing for this parameter.