Hi Shervin,

You can modify Simulation.py to run for however many ticks you need an then 
return control to python:
m5.simulate(ticks_till_ROI)
statDump(1000000000)
m5.simulate(m5.MaxTick)


Ali

On Oct 24, 2012, at 1:43 AM, shervin hajiamini wrote:

> Ali,
> 
> Based on the stats I get for the entire ROI (non-periodic) of a benchmark, I 
> know approximately at which tick ROI starts and at which tick the ROI ends, 
> however I  do not know how I can use this information for PERIODIC dumping of 
> stats for ROI only. 
> 
> I am using statDump(period) which has been recently added as a patch to gem5 
> but I do not know how I can use this function for only ROI of a benchmark.
> 
> Thanks,
> Shervin
> ---------------------------------------------------------------
> 
> How do you know the simulator is in the ROI?
> 
> Provided you know when it will be in the ROI, you can can periodically dump 
> the stats at that point.
> 
> Ali
> 
> On Oct 24, 2012, at 1:07 AM, shervin hajiamini wrote:
> 
> > 
> > Hello Fernando,
> > 
> > Thanks for the link. 
> > 
> > It seems that for getting the periodic stats of a benchmark I need to 
> > change the source code of the benchmark, however I am wondering whether 
> > there is a way to dump the stats ONLY for ROI periodically (w/o 
> > checkpoints) without modifying the source code of the benchmark? 
> > 
> > Thanks,
> > Shervin
> > ---------------------------------------------------------
> > 
> > Hello,
> > 
> > What you're looking for is here: http://www.m5sim.org/M5ops
> > You need to include a header file on your code and call functions to
> > dump stats and/or reset them. You'll also need to include a .S file in
> > your makefile.
> > 
> > Hope it will help.
> > 
> > 2012/10/23, shervin hajiamini <hajamini_2...@yahoo.com>:
> > >
> > >
> > > Hi all,
> > >
> > >
> > > For dumping stats periodically I
> > > am using statDump(period) which is called in fs.py. Does anyone know how I
> > > can use this function call
> > > to dump stats for JUST the region of interest of a benchmark?
> > >
> > > Using statDump(period),
> > > how can I create checkpoints for dumping stats periodically for the region
> > > of interest?
> > >
> > >
> > > Thanks,
> > >
> > > Shervin
> > >
> > >
> > 
> > 
> > -- 
> > Fernando A. Endo, PhD student and researcher
> > 
> > CEA Lab
> > and
> > Universit? de Grenoble, UJF
> > France
> > 
> > 
> > ------------------------------
> > 
> > _______________________________________________
> > gem5-users mailing list
> > gem5-users@gem5.org
> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> > 
> > End of gem5-users Digest, Vol 75, Issue 94
> > ******************************************
> > _______________________________________________
> > gem5-users mailing list
> > gem5-users@gem5.org
> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20121024/86402065/attachment.html>
> 
> ------------------------------
> 
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> 
> End of gem5-users Digest, Vol 75, Issue 99
> ******************************************
> _______________________________________________
> 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

Reply via email to