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

On 08/10/12 08:08, Andreas Hansson wrote:
Hi Shervin,

Put it in which ever Python file you call on the gem5 command line (e.g. se.py, 
fs.py)

Andreas

From: shervin hajiamini<hajamini_2...@yahoo.com<mailto:hajamini_2...@yahoo.com>>
Reply-To: gem5 users mailing 
list<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Date: Monday, 8 October 2012 07:53
To: 
"gem5-users@gem5.org<mailto:gem5-users@gem5.org>"<gem5-users@gem5.org<mailto:gem5-users@gem5.org>>
Subject: Re: [gem5-users] dump stats for every N cycles

Could you please let me know of the exact file name where I should call 
periodStatDump()? I searched through all the gem5 source codes for this 
function but I did not find that.

Thank you very much,
Shervin

----------------------------------------------------------------------

Message: 1
Date: Sun, 7 Oct 2012 20:54:04 +0100
From: Andreas 
Hansson<andreas.hans...@arm.com</mc/compose?to=andreas.hans...@arm.com>>
To: gem5 users mailing 
list<gem5-users@gem5.org</mc/compose?to=gem5-users@gem5.org>>
Subject: Re: [gem5-users] dump stats for every N cycles
Message-ID:<cc979bfe.3929%andreas.hans...@arm.com</mc/compose?to=andreas.hans...@arm.com>>
Content-Type: text/plain; charset=WINDOWS-1252

I would suggest calling it from the Python scripts, when creating the system. 
You can call it from C++ as well, but why modify the source code if you don't 
have to?

Andreas

From: shervin 
hajiamini<hajamini_2...@yahoo.com</mc/compose?to=hajamini_2...@yahoo.com><mailto:hajamini_2...@yahoo.com</mc/compose?to=hajamini_2...@yahoo.com>>>
Reply-To: gem5 users mailing 
list<gem5-users@gem5.org</mc/compose?to=gem5-users@gem5.org><mailto:gem5-users@gem5.org</mc/compose?to=gem5-users@gem5.org>>>
Date: Sunday, 7 October 2012 19:45
To: 
"gem5-users@gem5.org</mc/compose?to=gem5-users@gem5.org><mailto:gem5-users@gem5.org</mc/compose?to=gem5-users@gem5.org>>"<gem5-users@gem5.org</mc/compose?to=gem5-users@gem5.org><mailto:gem5-users@gem5.org</mc/compose?to=gem5-users@gem5.org>>>
Subject: Re: [gem5-users] dump stats for every N cycles

Andreas,

Following your reply, I want to know that in which file I need to call periodStatDump() 
such that the stats is dumped periodically regardless of whether CPU goes to sleep or 
not. Can I call periodStatDump in "cpu.cc" file? and if so, at which section of 
cpu.cc I need to call this function?

Thanks,
Shervin


-- 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
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


-- 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
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to