Hi Shervin,

You can turn it off by setting the period to 0. Unless you do this there is no 
upper limit, and it will keep running to the end of the simulation.

I'm not sure how you do this once the simulation is running though.

Sascha

From: [email protected] [mailto:[email protected]] On 
Behalf Of shervin hajiamini
Sent: 10 October 2012 15:25
To: [email protected]
Subject: Re: [gem5-users] dump stats for every N cycles

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]</mc/[email protected]> 
[mailto:[email protected]</mc/[email protected]>]
 On Behalf Of shervin hajiamini
Sent: 09 October 2012 16:28
To: [email protected]</mc/[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]></mc/[email protected]</mc/[email protected]>>>
To: 
[email protected]</mc/[email protected]></mc/[email protected]</mc/[email protected]>>
Subject: Re: [gem5-users] dump stats for every N cycles
Message-ID: 
<[email protected]</mc/[email protected]></mc/[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



-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to