Hi all, You absolutely can reset stats in both SE mode and in FS mode! Resetting stats can be done via magic instructions (which work in both SE and FS mode) or via the Python config scripts. You can exit the simulation loop (e.g., with a magic instruction or by hitting an instruction count limit) and then call "m5.stats.reset()" to reset the stats.
Jason On Wed, Mar 15, 2017 at 9:27 PM Wei Shu <wxs0...@louisiana.edu> wrote: > Hi Summer, > > I know that in fs simulation, we can call m5 reset to reset all the stats > by some period of ticks. But I am not sure about the se simulation. > Plus, your requirement is to reset stats after some number of > instructions. That's what come up in my mind. Let's see if others have > better idea. > > Thanks, > Wei > > ----- Original Message ----- > From: "Summer Deng" <csummer...@gmail.com> > To: "gem5 users mailing list" <gem5-users@gem5.org> > Sent: Wednesday, March 15, 2017 10:45:09 AM > Subject: Re: [gem5-users] reset stats counters > > Thank you for your answer. My real question is about the stat reset > function. What is that function? Can I call that function in the cpu code > (src/cpu/o3/cpu.cc)? > > Thanks! > Best, > Summer > On Mar 14, 2017, at 8:08 PM, Wei Shu <wxs0...@louisiana.edu> wrote: > > > Find the global variable of instruction count and make a if condition > test in your code. > > > > ----- Original Message ----- > > From: "Summer Deng" <csummer...@gmail.com> > > To: gem5-users@gem5.org > > Sent: Tuesday, March 14, 2017 5:06:29 PM > > Subject: [gem5-users] reset stats counters > > > > Hi everyone, > > > > Does anyone know how to reset gem5 stats after the execution has > started, say after 1K instructions, ? > > > > Thank you very much! > > Best, > > Summer > > _______________________________________________ > > gem5-users mailing list > > gem5-users@gem5.org > > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > _______________________________________________ > > gem5-users mailing list > > gem5-users@gem5.org > > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users