Thank you very much for the clarifications. How I can specify at which tick, statDump(period) starts dumping stats and at which tick, statDump(period) should terminate? I am asking this question because unless I do not specify how long statDump(period) should execute, I will get stats with a huge size. Is it possible to have such restriction at all?
Shervin --- On Mon, 10/8/12, gem5-users-requ...@gem5.org <gem5-users-requ...@gem5.org> wrote: From: gem5-users-requ...@gem5.org <gem5-users-requ...@gem5.org> Subject: gem5-users Digest, Vol 75, Issue 41 To: gem5-users@gem5.org Date: Monday, October 8, 2012, 7:30 PM Send gem5-users mailing list submissions to gem5-users@gem5.org To subscribe or unsubscribe via the World Wide Web, visit http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users or, via email, send a message with subject or body 'help' to gem5-users-requ...@gem5.org You can reach the person managing the list at gem5-users-ow...@gem5.org When replying, please edit your Subject line so it is more specific than "Re: Contents of gem5-users digest..." Today's Topics: 1. Re: dump stats for every N cycles (Sascha Bischoff) ---------------------------------------------------------------------- Message: 1 Date: Mon, 8 Oct 2012 12:03:35 +0100 From: Sascha Bischoff <sascha.bisch...@arm.com> To: gem5-users@gem5.org Subject: Re: [gem5-users] dump stats for every N cycles Message-ID: <5072b307.1060...@arm.com> 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 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 End of gem5-users Digest, Vol 75, Issue 41 ******************************************
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users