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 ------------------------------ Message: 2 Date: Sun, 7 Oct 2012 16:00:48 +0100 From: Andreas Hansson <[email protected]> To: gem5 users mailing list <[email protected]> Subject: Re: [gem5-users] dumps stats for every N cycles Message-ID: <cc97563c.3903%[email protected]> Content-Type: text/plain; charset=WINDOWS-1252 Hi Shervin, There is a function exported to python through swig that allows you to schedule a periodic dumping of stats, "periodStatDump(long long period)". You can add that to the script you use for your simulation. Andreas From: shervin hajiamini <[email protected]<mailto:[email protected]>> Reply-To: gem5 users mailing list <[email protected]<mailto:[email protected]>> Date: Saturday, 6 October 2012 18:13 To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [gem5-users] dumps stats for every N cycles Hi all, I want to dump stats for the all the consecutive periods (windows) of N cycles each, however when CPU goes to the sleep mode in a particular period, I do not have access to the cycle/tick counter (until CPU wakes up) and therefore the stats for that period cannot be captured. Does anybody know how I can dump stats for all the periods regardless of whether CPU goes to sleep or not? 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 End of gem5-users Digest, Vol 75, Issue 37 ******************************************
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
