Hello Kassan, You should use the Stats::schedStatEvent() function.
On Fri, Apr 10, 2015 at 6:45 PM, Kassan Unda <[email protected]> wrote: > Fabian Oboril <oboril <at> ira.uka.de> writes: > > > > > Hi, > > > > thanks for your help. M5 is truncating the stat file once at the > > beginning. But because the stream-pointer for the statistics > information > > is not reset after saving (flushing) the statistics to the stats.txt > > file in case of calling the printing routine multiple time during one > M5 > > execution the new statistics are just attached to the stats.txt file. > I > > now solved my problem by resetting the start position of the output > > stream (stream->seekp(0)) in the function Text::output() in > > src/base/stat/text.cc just in case someone can use this info. > > > > Best wishes > > Fabian Oboril > > > > > Hi, > I am trying to print statistics of gem5 after every cycle. I am not sure > where to make changes in the source code for that or is there a way like > through some inputs that gem5 can take care of that for me? Will really > appreciate any help. Thx in advance. > Kassan > > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users -- Best Regards, Kumail Ahmed M.Sc. Student TU Kaiserslautern
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
