Hi all, Thanks.
Linking to the m5 ops does the trick. Thanks! Cheers, Zheng > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 02 Apr 2012 10:53:59 -0400 > From: Tao Zhang <[email protected]> > To: gem5 users mailing list <[email protected]> > Subject: Re: [gem5-users] Dump simulation statistics for executing a > particular function > Message-ID: <[email protected]> > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > Hi Zheng, > > You can insert "m5.stats.reset()" immediately before the __kernel() > function to restart the statistics and then call "m5.stats.dump()" > following the __kernel() function to see the effect. > > Tao > > On 04/02/2012 09:39 AM, Zheng Wang wrote: > > Hi, > > > > I wonder how I can dump simulation statistics before and after calling > > a function in the SE mode (ARM cpu). > > > > For example, I want to collect simulation stats for executing the > > __kernel() function in the following code: > > > > int main() > > { > > .. > > __kernel(); > > ? > > } > > Using m5.stats.dump() seems to only give simulation stats for the > > whole program execution. > > > > Do I have to use a special instruction to trigger the python script? > > > > Cheers, > > Zheng > > > > > > _______________________________________________ > > gem5-users mailing list > > [email protected] > > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20120402/e8c2a6fc/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Mon, 02 Apr 2012 11:54:22 -0400 > From: Ali Saidi <[email protected]> > To: <[email protected]> > Subject: Re: [gem5-users] Dump simulation statistics for executing a > particular function > Message-ID: <[email protected]> > Content-Type: text/plain; charset="utf-8" > > > > Hi Zheng, > > If you link your program with the m5 ops in util/m5 you > should be able to put > > m5_dumpreset_stats(0,0); > > __kernel(); > > > m5_dumpreset_stats(0,0); > > and that should accomplish what you want. > > > Ali > > On 02.04.2012 09:39, Zheng Wang wrote: > > > Hi, > > I wonder how I > can dump simulation statistics before and after calling a function in > the SE mode (ARM cpu). > > For example, I want to collect simulation > stats for executing the __kernel() function in the following code: > > > int main() > > { > > .. > > __kernel(); > > ? > > } > > > > Using > m5.stats.dump() seems to only give simulation stats for the whole > program execution. > > Do I have to use a special instruction to trigger > the python script? > > Cheers, > > Zheng > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20120402/1307521e/attachment-0001.html > > > > ------------------------------ > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > End of gem5-users Digest, Vol 69, Issue 3 > ***************************************** > -- Best regards, WANG Zheng
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
