gem5/base
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
..
compression Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
loader Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07: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 Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
circlebuf.hh Import changeset 2003-10-07 10:41:54 -04:00
cprintf.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
cprintf.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
cprintf_formats.hh Import changeset 2003-10-07 10:41:54 -04: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 Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
fast_alloc.hh Import changeset 2003-10-07 10:41:54 -04: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 Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
hostinfo.cc Merge ehallnor@zizzer:/bk/m5 2003-10-14 13:29:20 -04:00
hostinfo.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
hybrid_pred.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
hybrid_pred.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07: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 Print a warning rather than failing if we're unserializing and there's an 2003-11-02 21:49:15 -08: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 Import changeset 2003-10-07 10:41:54 -04:00
misc.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07: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
pollevent.cc Add support for serialization 2003-10-30 15:15:27 -05: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.hh Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
refcnt.hh Import changeset 2003-10-07 10:41:54 -04:00
remote_gdb.cc Try to get the correct license on various files 2003-10-13 02:00:47 -04:00
remote_gdb.hh Initial support for CPU switching. New SamplingCPU object encompasses a set 2003-10-23 19:07:52 -07:00
res_list.hh Global whitespace fixes 2003-10-15 16:39:37 -04:00
sat_counter.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
sat_counter.hh Get rid of lots of obsolete mentions of stat_sdb_t. 2003-10-29 22:22:03 -08: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 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
statistics.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
str.cc Make the to_number function work better. 2003-10-31 18:27:17 -05:00
str.hh Import changeset 2003-10-07 10:41:54 -04:00
trace.cc Make include paths explicit and update makefile accordingly. 2003-10-10 11:09:00 -07:00
trace.hh Global whitespace fixes 2003-10-15 16:39:37 -04:00