gem5/base
Nathan Binkert a4d7bb113a Make a new stat type of Value which is a scalar stat that
proxies for a real C/C++ scalar value or scalar functor.
This replaces the scalar() and functor() terms that were
previously used in formulas.  This helps when dumping
statistics because the formulas are not supposed to change.

cpu/base_cpu.cc:
    Add a number of cycles stat to the cpu object that tracks the
    number of cycles that the cpu has executed.  This starts to pave
    the way for cpu cycles being different from event ticks.
cpu/base_cpu.hh:
    provide a functor for calculating all simulated instructions
    of all CPUs and a virtual function for determining that number.
    To deal with the change from functor() to Value::functor()
cpu/simple_cpu/simple_cpu.cc:
    simTicks -> numCycles
    numInsts is now a real Scalar stat, not a Formula
cpu/simple_cpu/simple_cpu.hh:
    numInsts is now a real Scalar stat, not a Formula
    count all instructions
sim/stat_control.cc:
    simInsts, simTicks, hostMemory, and hostSeconds are no
    longer Statistics::Formula but rather Statistics::Value
    add new stat for tick frequency
sim/stats.hh:
    don't need everything to be extern.
test/Makefile:
    Make stuff work a tad bit better
test/stattest.cc:
    test out Statistics::Value

--HG--
extra : convert_revision : c812e8baa2b17c08abf3a68ed1e1125dc6f2cfb4
2004-05-12 15:49:01 -04:00
..
compression A few memory system performance enhancements. 2004-03-24 04:41:19 -05:00
loader Hacks to make the libelf stuff work in openbsd. 2004-03-24 05:13:49 -05:00
stats Major stats package cleanup 2004-05-04 17:01:00 -04:00
bitfield.hh Import changeset 2003-10-07 10:41:54 -04:00
callback.hh Clean up callbacks 2003-10-20 21:38:32 -04:00
circlebuf.cc A little bit of code here and there to get more access to 2003-11-04 17:43:41 -05:00
circlebuf.hh A little bit of code here and there to get more access to 2003-11-04 17:43:41 -05:00
cprintf.cc delete the data in the arglist when the list is destroyed, 2004-01-29 17:44:08 -05:00
cprintf.hh delete the data in the arglist when the list is destroyed, 2004-01-29 17:44:08 -05:00
cprintf_formats.hh More reformatting of reference parameter declarations. 2004-02-04 11:16:30 -08:00
date.cc Import changeset 2003-10-07 10:41:54 -04:00
dbl_list.hh Import changeset 2003-10-07 10:41:54 -04:00
endian.hh Import changeset 2003-10-07 10:41:54 -04:00
fast_alloc.cc Add #define parameter and corresponding build option to 2003-12-15 20:55:10 -08:00
fast_alloc.hh Add #define parameter and corresponding build option to 2003-12-15 20:55:10 -08:00
fifo_buffer.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
fifo_buffer.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
hashmap.hh Minor cleanup from building & diffing behavior 2004-03-24 23:29:10 -08:00
hostinfo.cc Add support for getting the hostname 2003-12-15 18:24:02 -05:00
hostinfo.hh Add support for getting the hostname 2003-12-15 18:24:02 -05:00
hybrid_pred.cc Major stats package cleanup 2004-05-04 17:01:00 -04:00
hybrid_pred.hh Major stats package cleanup 2004-05-04 17:01:00 -04:00
inet.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
inet.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
inifile.cc Make stuff build on openbsd 2003-12-19 00:02:20 -05:00
inifile.hh Print a warning rather than failing if we're unserializing and there's an 2003-11-02 21:49:15 -08:00
intmath.cc Global whitespace fixes 2003-10-15 16:39:37 -04:00
intmath.hh Need to cast to avoid infinite recursion. 2003-10-15 17:36:10 -04:00
kgdb.h Remote debugging cleanup and internal debugging support 2004-02-03 10:50:04 -05:00
misc.cc provide an output stream for simulator output. (This takes place of the 2004-01-29 00:38:18 -05:00
misc.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
mod_num.hh Import changeset 2003-10-07 10:41:54 -04:00
mysql.cc Major stats package cleanup 2004-05-04 17:01:00 -04:00
mysql.hh Major stats package cleanup 2004-05-04 17:01:00 -04:00
pollevent.cc Miscellaneous minor fixes/improvements. 2003-12-17 09:43:03 -08:00
pollevent.hh Add support for serialization 2003-10-30 15:15:27 -05:00
predictor.hh Get rid of lots of obsolete mentions of stat_sdb_t. 2003-10-29 22:22:03 -08:00
random.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
random.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
range.cc Totally rework the Range class. Now the range is from [start, end) 2004-02-07 01:16:50 -05:00
range.hh random fixes 2004-02-09 09:04:52 -05:00
refcnt.hh Change "Foo& foo" declarations to "Foo &foo". 2004-02-02 15:55:35 -08:00
remote_gdb.cc - Whack unused code 2004-02-09 10:49:48 -05:00
remote_gdb.hh Remote debugging cleanup and internal debugging support 2004-02-03 10:50:04 -05:00
res_list.hh Change "Foo& foo" declarations to "Foo &foo". 2004-02-02 15:55:35 -08:00
sat_counter.cc Major stats package cleanup 2004-05-04 17:01:00 -04:00
sat_counter.hh Major stats package cleanup 2004-05-04 17:01:00 -04:00
sched_list.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
socket.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
socket.hh Import changeset 2003-10-07 10:41:54 -04:00
statistics.cc Major stats package cleanup 2004-05-04 17:01:00 -04:00
statistics.hh Make a new stat type of Value which is a scalar stat that 2004-05-12 15:49:01 -04:00
str.cc Make the to_number function work better. 2003-10-31 18:27:17 -05:00
str.hh Change "Foo& foo" declarations to "Foo &foo". 2004-02-02 15:55:35 -08:00
time.cc Minor changes to Time 2004-03-24 04:35:48 -05:00
time.hh Minor changes to Time 2004-03-24 04:35:48 -05:00
trace.cc more debugging support 2004-02-29 19:29:30 -05:00
trace.hh add support for sticking generated files in the build directory 2004-05-06 12:09:54 -04:00
traceflags.py add support for sticking generated files in the build directory 2004-05-06 12:09:54 -04:00
userinfo.cc Function for getting username 2004-05-04 12:23:57 -04:00
userinfo.hh Function for getting username 2004-05-04 12:23:57 -04:00