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"
57 std::unordered_map<Addr, uint64_t>
counter;
115 s += itr->to_string();
bool ifListNotEmpty
when all the PC Count pairs in the targetPair are encountered, and the PCCOUNTTRACK_END exit event is...
uint64_t getPcCount(Addr pc) const
this function returns the corresponding value of count for the inputted Program Counter address.
PcCountPair getCurrentPcCountPair() const
this function returns the current PC Count pair
std::unordered_map< Addr, uint64_t > counter
a counter that stores all the target PC addresses and the number of times the target PC has been exec...
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 Arm Limited All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Enable hashing for this parameter.