gem5/sim
Lisa Hsu 921b1ee87b Add the ability to track stats in user defined sets of function calls. code can be generated via the base/instrum_codegen.pl script to easily change the functions being tracked. the only thing the user needs to do is add code in tru64System to change how the callerMap is populated.
command line:

m5.* <config file> <args> --server.system:bin=true to track function calls in the server
m5.* <config file> <args> --client.system:bin=true to track function calls in the client

base/statistics.cc:
    make an adjustment to the way stats are printed for FS_MEASURE
base/statistics.hh:
    add a name() virtual function to GenBin.  add a debug printf for activate().
    add amake MainBin the default bin when FS_MEASURE.
cpu/exec_context.cc:
    initialize swCtx to null upon creation of an xc
cpu/exec_context.hh:
    add a SWContext pointer to every execution context.
cpu/simple_cpu/simple_cpu.cc:
    process calls and returns for FS_MEASURE
cpu/simple_cpu/simple_cpu.hh:
    add this so idleCycles will not be accessed before all stats are constructed
kern/tru64/tru64_events.cc:
    add a FnEvent that fires whenever a function we're tracking is called.  implement the process() virtual function for it.
kern/tru64/tru64_events.hh:
    add FnEvent
kern/tru64/tru64_system.cc:
    send bin parameter to System constructor.  add bin parameter to Tru64System object.  initialize all the FnEvent and MainBin members of Tru64system.  also, populate the calling map that indicates whether a function call is on the path we're tracking.
kern/tru64/tru64_system.hh:
    modify the Tru64System class to support FS_MEASURE
sim/system.cc:
    add a bin parameter to System class.  initialize a MainBin to hold the stats for nonPath.
sim/system.hh:
    add a map of to match bins to function names.  add a swCtx map to map pcb addresses to SWContext *s.  Add some supporting functions.

--HG--
extra : convert_revision : af3eadd798cb2d2aed9b54e1059dcedf244dd526
2003-11-04 15:15:12 -05:00
..
async.hh Import changeset 2003-10-07 10:41:54 -04:00
builder.cc Separate the stuff for SimObject from SimObject builder. 2003-10-20 20:17:01 -04:00
builder.hh Separate the stuff for SimObject from SimObject builder. 2003-10-20 20:17:01 -04:00
debug.cc Implement more m5 pseduo opcodes: 2003-11-02 18:02:58 -05:00
debug.hh Import changeset 2003-10-07 10:41:54 -04:00
eventq.cc Implement more m5 pseduo opcodes: 2003-11-02 18:02:58 -05:00
eventq.hh eventq.cc, eventq.hh: 2003-10-31 22:09:18 -05:00
host.hh Import changeset 2003-10-07 10:41:54 -04:00
main.cc Implement more m5 pseduo opcodes: 2003-11-02 18:02:58 -05:00
param.cc Support for Serializable non-SimObject things like events. 2003-10-29 21:45:39 -08:00
param.hh Get rid of lots of obsolete mentions of stat_sdb_t. 2003-10-29 22:22:03 -08:00
prog.cc Make FullCPU schedule its TickEvent when one of its contexts becomes active. 2003-10-24 23:02:36 -07:00
prog.hh Initial support for CPU switching. New SamplingCPU object encompasses a set 2003-10-23 19:07:52 -07:00
serialize.cc Print a warning rather than failing if we're unserializing and there's an 2003-11-02 21:49:15 -08:00
serialize.hh Print a warning rather than failing if we're unserializing and there's an 2003-11-02 21:49:15 -08:00
sim_events.cc Move the m5 pseudo instructions into their own file 2003-11-02 20:43:39 -05:00
sim_events.hh Move the m5 pseudo instructions into their own file 2003-11-02 20:43:39 -05:00
sim_exit.hh Move the m5 pseudo instructions into their own file 2003-11-02 20:43:39 -05:00
sim_object.cc Changed the naming of Serializeable derived objects. Serializeable no longer has 2003-10-31 17:32:04 -05:00
sim_object.hh Changed the naming of Serializeable derived objects. Serializeable no longer has 2003-10-31 17:32:04 -05:00
sim_time.cc Make things work on OpenBSD again 2003-10-10 22:59:51 -04:00
sim_time.hh Make things work on OpenBSD again 2003-10-10 22:59:51 -04:00
system.cc Add the ability to track stats in user defined sets of function calls. code can be generated via the base/instrum_codegen.pl script to easily change the functions being tracked. the only thing the user needs to do is add code in tru64System to change how the callerMap is populated. 2003-11-04 15:15:12 -05:00
system.hh Add the ability to track stats in user defined sets of function calls. code can be generated via the base/instrum_codegen.pl script to easily change the functions being tracked. the only thing the user needs to do is add code in tru64System to change how the callerMap is populated. 2003-11-04 15:15:12 -05:00
universe.cc Implement more m5 pseduo opcodes: 2003-11-02 18:02:58 -05:00