gem5/cpu
Nathan Binkert 0dcb288365 Cleanup the StackTrace interfaces and profile interfaces so they
are more efficient and reduce the number of new/delete calls

arch/alpha/stacktrace.cc:
    - Change the StackTrace code so that the class can more easily be
    cleaned out and reused to avoid extra allocations.
    - Allow trace() to accept a static instruction pointer so it can
    determine if the instruction is worth tracing.  This is moved from
    the CPU.
    - provide constants for special meaning PCs (user, console, unknown),
    instead of magic numbers
    - switch to using kernelSymtab instead of allSymtab which will be
    going away
    - if the stack adjustment doesn't make any sense, exit and push
    unknown so we don't get into an infinite loop or record garbage.
    - check to see if we've made too many iterations through the stack
    and panic to avoid an infinite loop
arch/alpha/stacktrace.hh:
    - Change the StackTrace code so that the class can more easily be
    cleaned out and reused to avoid extra allocations.
    - Allow trace() to accept a static instruction pointer so it can
    determine if the instruction is worth tracing.  This is moved from
    the CPU.
    - provide constants for special meaning PCs (user, console, unknown),
    instead of magic numbers
cpu/base.cc:
    only clear the profile if we have one
    include profile.hh here since base.hh doesn't do it anymore
cpu/base.hh:
    no need to include cpu/profile.hh here
cpu/profile.cc:
    use ProfileNode pointers instead of objects in the ChildList
    Consume a vector of addresses since that's really all we
    care about.
cpu/profile.hh:
    Keep pointers to ProfileNodes to reduce the size of these structures
    keep a StackTrace around so that we may reuse it.
    provide consume functions that use the new StackTrace trace interface
    one consume function is inline and tries to fastpath the no trace
    condition, it calls the outlined consume function if a trace is generated.
cpu/simple/cpu.cc:
    include cpu/profile.hh here since base.hh no longer does
    use the new FunctionProfile::consume interface
    (which contains the tracing functions)

--HG--
extra : convert_revision : 5a1d9265289a75f67a497b322926be1f8c2d8eb3
2005-11-20 17:44:58 -05:00
..
memtest Minor cleanup of memtest. 2005-10-03 09:13:56 -04:00
o3 Build options are set via a build_options file in the 2005-08-30 13:18:54 -04:00
ozone Build options are set via a build_options file in the 2005-08-30 13:18:54 -04:00
simple Cleanup the StackTrace interfaces and profile interfaces so they 2005-11-20 17:44:58 -05:00
trace Cleanup copyright stuff. Add our copyright files that 2005-06-05 11:02:38 -04:00
base.cc Cleanup the StackTrace interfaces and profile interfaces so they 2005-11-20 17:44:58 -05:00
base.hh Cleanup the StackTrace interfaces and profile interfaces so they 2005-11-20 17:44:58 -05:00
base_dyn_inst.cc Build options are set via a build_options file in the 2005-08-30 13:18:54 -04:00
base_dyn_inst.hh Build options are set via a build_options file in the 2005-08-30 13:18:54 -04:00
exec_context.cc Add new function profiling stuff, wrap the pc_sample stuff into it. 2005-10-18 19:07:42 -04:00
exec_context.hh Add new function profiling stuff, wrap the pc_sample stuff into it. 2005-10-18 19:07:42 -04:00
exetrace.cc Fix Lisa's CPU trace system check for syscall emulation. 2005-11-10 20:30:04 -05:00
exetrace.hh just commit what i need for dumping traces compatible with intel's casper 2005-11-09 16:42:36 -05:00
inst_seq.hh Many files: 2005-06-05 05:16:00 -04:00
intr_control.cc Many files: 2005-06-05 05:16:00 -04:00
intr_control.hh Many files: 2005-06-05 05:16:00 -04:00
pc_event.cc Add functions to System object to set up function-based events, 2005-09-24 14:20:29 -04:00
pc_event.hh Add functions to System object to set up function-based events, 2005-09-24 14:20:29 -04:00
profile.cc Cleanup the StackTrace interfaces and profile interfaces so they 2005-11-20 17:44:58 -05:00
profile.hh Cleanup the StackTrace interfaces and profile interfaces so they 2005-11-20 17:44:58 -05:00
smt.hh Many files: 2005-06-05 05:16:00 -04:00
static_inst.cc Many files: 2005-06-05 05:16:00 -04:00
static_inst.hh Many files: 2005-06-05 05:16:00 -04:00