Hi, I was trying to calculate the MPKI (miss per kilo-instructions) stats
in gem5 and print the result to m5out/stats.txt.
I try to calculate this value by adding stats under the CacheStats function
under src/mem/base.cc.
mpki.flags(total | nozero | nonan);
mpki = (overallMisses * 1000) / BaseCPU::numSimulatedInsts();
for (int i = 0; i < max_requestors; i++) {
mpki.subname(i, system->getRequestorName(i));
}
To get the instruction count, I've included the cpu/base.hh to use the
static function numSimulatedInsts(). However, the numSimulatedInsts will
always return 0 and therefore the result in stats.txt will always be inf. I
wonder how to get the correct simulated instruction count to calculate the
value correctly. Thanks.
Best Regards.
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]