My understanding is like that 'm5 resetstats' will reset ruby.stats as well as gem5.stats based on the proposed patch.
So, I tested simple script to end the system as soon as it is built. As I inserted 'm5 resetstats' right before executing m5 exit, I expected the statistic should be almost equal to zero; all memory operations during system booting time should be deleted. But, actually, it turned out to be similar to the previous results I had obtained without your patch. I used modify.patch file attached in one of previous emails. Do you have any idea? I have figured this issue by adding a pseudo instruction.. But what you proposed looks simple. Hongil From: Hamid Reza Khaleghzadeh <[email protected]> Reply-To: gem5 users mailing list <[email protected]> Date: Fri, 18 May 2012 11:05:27 +0430 To: gem5 users mailing list <[email protected]> Subject: Re: [gem5-users] Problem with creating diff file Hi Hongil, M5 dumpstats dumps only gem5 stats and m5 resetstats resets gem5 stats only. So, I'm going to ruby.stat reset and dumped along with gem5 stats. The proposed patch resets ruby.stats as gem5 stats reset and dumps as gem5 stats dumped. Could you tell me what is your problem? Best regrads On Fri, May 18, 2012 at 12:57 AM, Hongil Yoon <[email protected]> wrote: > Hi Hamid, > > I have tested your patch. It seems not to work fine. > The ruby.stat is printed out based on a script after the booting process is > done. m5 dumpstats and m5 resetstats are invoked right before m5 exit. I will > copy the script below. > > /sbin/m5 dumpstats > /sbin/m5 resetstats > echo "Done :D" > /sbin/m5 exit > /sbin/m5 exit > > Did I miss something? > > -- > Hongil > > > On 05/17/2012 12:43 AM, Hamid Reza Khaleghzadeh wrote: >> Hello, >> >> I have modified Gem5 source code. For creating diff file, main Gem5 >> source code has been copied in folder "a" and modified one into folder >> "b". I have created patch file as following: >> >> "diff -ru a/ b/ > modify.patch" >> >> but when this patch is executed as dry-run, there are a few errors. >> Could you tell me what is wrong? >> By the way, I have attached modify.patch. >> >> Sorry to bother you >> >> >> >> _______________________________________________ >> gem5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> <http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users> > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > <http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users> -- Hamid Reza Khaleghzadeh http://hkhaleghzadeh.webs.com _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
