The brackets ([]) mean that the parameter is optional, but it's a parameter. Specify one and it will dump in that many ticks, two and it will continue to dump every however many ticks.
E.g. m5 dumpstats 10 100 would dump stats in 10 ticks and then again every 100 ticks after that. Ali On Nov 16, 2011, at 2:48 AM, Surya Narayanan wrote: > Hello, > > I see that we can dump statistics in certain intervals i,e periodically. > > dumpstats [delay [period]]: Save simulation statistics to a file in delay > ticks; repeat this every period ticks. > > In /m5/src/sim/pseudo_inst.hh > void dumpstats(ThreadContext *tc, Tick delay, Tick period); > > In /m5/util/m5/m5.c > { "dumpstats", do_dump_stats, "[delay [period]]" }, > > But I don't know how to enable this in gem5. I tried modifying the .rcs > script like the following by passing the parameter but the program executed > the same way. > > /sbin/m5 dumpstats[10000] > /sbin/m5 resetstats > > Is there any command line technique to do this? > > If I stat dump at regular intervals will there be multiple stat.txt file > formed in m5out folder? > > -- > Regards, > Surya > _______________________________________________ > 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