Hi, For now the standard stats file from gem5 using classic cache model does not have MPKI.
So you need to declare the stats and you can access the declared stats in cpu, see the how cpu calls LSQ (or cache) objects and using that you can access the MPKI stat from CPU On Fri, Jun 26, 2020 at 4:20 PM Victor Kariofillis via gem5-users < gem5-users@gem5.org> wrote: > Hi, > > Building on top of my previous question and making it a bit more general. > Is there a way to access stats in a somewhat global manner? Let me explain > that with an example. During program execution, I need to know the number > of instructions committed and the MPKIs for L1 and L2. On every commit of > an instruction, I want to check the cache miss rates and see if and how > they changed. (All of these done from a module in the src/cpu directory.) > Do I have to connect the cpu and cache objects to my predictor via the > Python files? Or are the stats saved somewhere so that they are globally > accessible? > > Thanks, > Victor > > On Thu, 18 Jun 2020 at 17:38, Victor Kariofillis <vickariofil...@gmail.com> > wrote: > >> Hi, >> >> I want to run some tests for phase predictors using cache stats (e.g., L1 >> and L2 MPKIs). I need access to those stats during program execution, in >> order to both keep a log of these and make predictions based on them. What >> is the best way to access them? Would this be done through the cache.cc and >> cache.hh files? >> >> Also, since the phase predictor would be using cache stats is it best for >> it to be implemented in the src/mem/cache directory? >> >> Thanks, >> Victor >> > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s