You can record the statistics every 100 million instructions and then
throw away ever other recording, however there currently isn't a way
to specify every other period although it wouldn't be hard to add.
We have a pseudo instruction that we use to dump/reset the stats. You
can see the implementation in m5/util/m5/m5op_alpha.S, search for:
m5_dumpreset_stats. The implementation is is the alpha isa description
file and src/sim/pseudo_insts.cc, but simply if you call that assembly
as a function where the first parameter is when you want to dump and
reset the statistics.
Right now the first parameter it takes is the tick to dump/reset and
the next is the number of ticks to wait before repeating the dump/
reset. If you removed both parameters from the pseudo_inst.cc call to
StatEvent() it would happen immediately and never happen again which
is probably what you want.
As for selectively dumping some stats and not dumping others we don't
support anything like that currently.
Ali
On Feb 4, 2008, at 4:46 PM, jiayuan meng wrote:
I am doing a multicore simulation and I only want to measure cache
misses during the guest application's parallel phase
I added two systemcalls which tells m5 to start measure and stop
messure, the system calls will be called by the guest application
when it reaches its parallel phase.
I can get around it by using my own variables. But I LOVE m5 and I
would prefer to use its stats if possible.
It's a pity that the functionality is turned off. Is there a patch
for it?
Thanks!
Jiayuan
> Date: Mon, 4 Feb 2008 13:35:56 -0800
> From: [EMAIL PROTECTED]
> To: m5-users@m5sim.org
> Subject: Re: [m5-users] stats switch off/on
>
> Actually, M5 used to support this sort of thing, but nobody really
> used it, so the code was removed to simplify the statistics. You can
> dump statistics multiple times and do the proper post processing.
>
> It's probably best that you explain in a little bit more detail
> exactly what you're trying to accomplish so we can help you.
>
> Nate
>
>
> > Is there a way to do selectively sampling? I mean, when using the
> > statistics, I'd like to say in my simulator: for every other 100
million
> > ticks, record the statistics. Does beta 4 comes with this
functionality?
> >
> > If it can, then can I just pick a subset of stats to be measured
in some
> > specified time interval, while others get measured as usual?
> >
> > Thanks for the help.
> >
> > Jiayuan
> >
> > ________________________________
> > Climb to the top of the charts! Play the word scramble challenge
with star
> > power. Play now!
> > _______________________________________________
> > m5-users mailing list
> > m5-users@m5sim.org
> > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
> >
> _______________________________________________
> m5-users mailing list
> m5-users@m5sim.org
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
Helping your favorite cause is as easy as instant messaging. You IM,
we give. Learn more. _______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
_______________________________________________
m5-users mailing list
m5-users@m5sim.org
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users