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 
<[email protected]<mailto:[email protected]>>
Reply-To: gem5 users mailing list 
<[email protected]<mailto:[email protected]>>
Date: Monday, 8 October 2012 07:53
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
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 
<[email protected]</mc/[email protected]>>
To: gem5 users mailing list 
<[email protected]</mc/[email protected]>>
Subject: Re: [gem5-users] dump stats for every N cycles
Message-ID: 
<cc979bfe.3929%[email protected]</mc/[email protected]>>
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 
<[email protected]</mc/[email protected]><mailto:[email protected]</mc/[email protected]>>>
Reply-To: gem5 users mailing list 
<[email protected]</mc/[email protected]><mailto:[email protected]</mc/[email protected]>>>
Date: Sunday, 7 October 2012 19:45
To: 
"[email protected]</mc/[email protected]><mailto:[email protected]</mc/[email protected]>>"
 
<[email protected]</mc/[email protected]><mailto:[email protected]</mc/[email protected]>>>
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
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to