I saw that. Seems that this file is used in FS mode but I use SE mode. I couln't figure out where in the code (src forlder) the stats are printed in the file. the regStat() is used at the beginning of simulation. But where in the code, simulator goes back to the list of stat counters to print them .
On 1/10/12, Ali Saidi <sa...@umich.edu> wrote: > > > Take a look at > > util/m5/m5.c > > Ali > > On 09.01.2012 12:14, Ankita > (Garg) Goel wrote: > >> Hi, >> The dumpstats routine is called from > within the booted OS in fs mode using the command "m5 dumpstats". There > are other similar commands like "m5 [resetstats|dumpresetstats|..]". >> > >> Regards, >> Ankita >> >> On Sun, Jan 8, 2012 at 12:12 PM, Mahmood > Naderan <mahmood...@gmail.com [3]> wrote: >> >>> hi >>> How can I debug > printed stats at the end of simulation? >>> >>> The long desciption > is: >>> I defined a stat counter. While debugging I can see that this > counter >>> is incremented but at the end of simulation the printed value > is >>> always 0. >>> Now I want to set a breakpoint in the funcion that > print the stat to >>> the file and see why the value is always zero. >>> > >>> I see a function dumpstats() in pseudo_inst.cc but seems that >>> > simulator never reach this function. >>> >>> Thanks for any idea >>> -- >>> > // Naderan *Mahmood; >>> > _______________________________________________ >>> gem5-users mailing > list >>> gem5-users@gem5.org [1] >>> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [2] >> >> -- >> > Regards, >> Ankita > > > > Links: > ------ > [1] mailto:gem5-users@gem5.org > [2] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > [3] > mailto:mahmood...@gmail.com > -- -- // Naderan *Mahmood; _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users