sorry for the incomplete message:

As I mentioned, I have changed nothing from beta 3 to beta 4. So I dont
think I am doing anything wrong, since it worked fine before. Here is how I
register the stats:

in the dram.hh file:
   Stats::Scalar<> bytes_transferred;
   Stats::Vector<> mem_row_access;

in the dram.cc file, regStats()
        bytes_transferred
       .name(name() + ".bytes_transferred")
       .desc("number of bytes transferred in a small time window")
       ;

       mem_row_access
       .init((int)((num_rows*num_banks)/32))
      .name(name() + ".mem_row_access")
       .desc("row access statistics")
       ;

It works as expected in the beta3. Any ideas?

- Sujay

----- Original Message -----
From: "Nathan Binkert" <[EMAIL PROTECTED]>
To: "M5 users mailing list" <m5-users@m5sim.org>
Sent: Sunday, November 11, 2007 12:02 PM
Subject: Re: [m5-users] new vector stats in beta 4


Things haven't really changed in the stats package, did your stuff work before? Are you registering stats correctly? There are many examples of vector stats being used throughout the code. Are you registering your stats the same way?

Hello,
I am having trouble declaring my own vector stats in the new beta 4 version of M5. for example, if I declare:

Stats::Vector<> mem_row_access;

in dram.hh.

Compiling goes through corrctly, no errors. However, when I run a benchmark (i am using SE mode), it aborts immediately with the following error:

panic: stat check failed for
@ cycle 0

-------------

This worked perfectly in M5 v2 beta 3.

Also, using my own scalar stats in beta 4 is working fine. There seems to be some problem with vector stats.

- Sujay


_______________________________________________
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

Reply via email to