Thanks. I put it in a function which calls nextCycle in BaseCPU and make TimingSimpleCPU calls that function whenever it calls nextCycle.

One more question, what is the easiest way to get the current cache statistics at runtime (for both private caches and the L2 cache, assuming a single-core case) in TimingSimpleCPU class?

Thanks!

Weixun

On 2/23/2011 1:10 PM, Korey Sewell wrote:
If you want to "hack this", look into the CPU progress interval code (src/cpu/base.cc) and instead of printing out the progress interval, call the dumpStats function (not sure where that is offhand).

On Wed, Feb 23, 2011 at 1:06 PM, Weixun Wang <[email protected] <mailto:[email protected]>> wrote:

    Hi there,

    I need to dump out some statistics on a period basis (e.g., every
    10000 cycles) in M5 during execution. What is the best place in
    the source code to add this? Although hacked M5 before, I failed
    to find the main simulation loop (or there does not even exist
    such a loop but only message passing components and queues?).

    Any help?

    Thanks.

    Weixun
    _______________________________________________
    m5-users mailing list
    [email protected] <mailto:[email protected]>
    http://m5sim.org/cgi-bin/mailman/listinfo/m5-users




--
- Korey


_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users


--
Best Regards,

Wang, Weixun

Department of Computer&  Information Science&  Engineering
Gator College of Engineering
University of Florida
Gainesville, FL 32611
http://www.cise.ufl.edu/~wewang

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to