38#ifndef __CPU_SIMPLE_PROBES_SIMPOINT_HH__
39#define __CPU_SIMPLE_PROBES_SIMPOINT_HH__
41#include <unordered_map>
45#include "params/SimPoint.hh"
69struct hash<
gem5::BasicBlockRange>
74 return hash<gem5::Addr>()(bb.first + bb.second);
122 std::unordered_map<BasicBlockRange, BBInfo>
bbMap;
This class is a minimal wrapper around SimObject.
virtual void init()
init() is called after all C++ SimObjects have been created and all ports are connected.
uint64_t intervalDrift
Excess inst count from previous interval.
void profile(const std::pair< SimpleThread *, StaticInstPtr > &)
Profile basic blocks for SimPoints.
OutputStream * simpointStream
Pointer to SimPoint BBV output stream.
std::unordered_map< BasicBlockRange, BBInfo > bbMap
Hash table containing all previously seen basic blocks.
uint64_t currentBBVInstCount
inst count in current basic block
SimPoint(const SimPointParams ¶ms)
const uint64_t intervalSize
SimPoint profiling interval size in instructions.
uint64_t intervalCount
Inst count in current basic block.
virtual void regProbeListeners()
Register probe listeners for this object.
BasicBlockRange currentBBV
Currently executing basic block.
const Params & params() const
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::pair< Addr, Addr > BasicBlockRange
Probe for SimPoints BBV generation.
Overload hash function for BasicBlockRange type.
uint64_t insts
Num of static insts in BB.
uint64_t count
Accumulated dynamic inst count executed by BB.
size_t operator()(const gem5::BasicBlockRange &bb) const