Hi Sascha, Thank you very much for your guidance. Having periodicStatDump, I want this function to run for a certain duration of time. For example periodicStatDump, dumps stats every N cycles FROM tick t1 TO tick t2. Could you please let me know how I can do that?
Regards, Shervin *********************** Hi Shervin, Try updating your gem5. The patch which enables this only recently got committed to the repository (about 2 weeks ago). The definition is in src/sim/stat_control.cc, and the swig interface is in src/python/swig/stats.i. Sascha From: [email protected] [mailto:[email protected]] On Behalf Of shervin hajiamini Sent: 09 October 2012 16:28 To: [email protected] Subject: Re: [gem5-users] dump stats for every N cycles Hi Sascha, I added "from m5.internal.stats import periodicStatDump as statDump" to fs.py, however while building gem5, it gives me the following error: can not import name periodicStatDump I can not find the definition of "periodStatDump" function in any of the python files. I would appreciate if you could help me with this. Thanks, Shervin Message: 1 Date: Mon, 8 Oct 2012 12:03:35 +0100 From: Sascha Bischoff <[email protected]</mc/[email protected]>> To: [email protected]</mc/[email protected]> Subject: Re: [gem5-users] dump stats for every N cycles Message-ID: <[email protected]</mc/[email protected]>> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Hi Shervin, You want to add the following to one of your python files (fs.py, se.py are good choices): from m5.internal.stats import periodicStatDump as statDump # Specify the period in Ticks statDump(1000000000) I hope that helps, Sascha
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
