gem5/arch/alpha
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
..
alpha_linux_process.cc shuffle files around for new directory structure 2005-06-04 20:50:10 -04:00
alpha_linux_process.hh Many files: 2005-06-05 05:16:00 -04:00
alpha_memory.cc Bug fix: can't increment an iterator after you erase 2005-09-02 14:38:11 -04:00
alpha_memory.hh Many files: 2005-06-05 05:16:00 -04:00
alpha_tru64_process.cc shuffle files around for new directory structure 2005-06-04 20:50:10 -04:00
alpha_tru64_process.hh Many files: 2005-06-05 05:16:00 -04:00
aout_machdep.h Many files: 2005-06-05 05:16:00 -04:00
arguments.cc Many files: 2005-06-05 05:16:00 -04:00
arguments.hh Many files: 2005-06-05 05:16:00 -04:00
ecoff_machdep.h Many files: 2005-06-05 04:21:22 -04:00
ev5.cc Build options are set via a build_options file in the 2005-08-30 13:18:54 -04:00
ev5.hh Build options are set via a build_options file in the 2005-08-30 13:18:54 -04:00
faults.cc Many files: 2005-06-05 05:16:00 -04:00
faults.hh Many files: 2005-06-05 05:16:00 -04:00
isa_desc add symbol opcode 2005-11-19 01:25:34 -05:00
isa_traits.hh define a couple more abi regiesters 2005-10-18 20:02:23 -04:00
osfpal.cc Many files: 2005-06-05 05:16:00 -04:00
osfpal.hh Many files: 2005-06-05 05:16:00 -04:00
pseudo_inst.cc add symbol opcode 2005-11-19 01:25:34 -05:00
pseudo_inst.hh add symbol opcode 2005-11-19 01:25:34 -05:00
stacktrace.cc Cleanup the StackTrace interfaces and profile interfaces so they 2005-11-20 17:44:58 -05:00
stacktrace.hh Cleanup the StackTrace interfaces and profile interfaces so they 2005-11-20 17:44:58 -05:00
vptr.hh Many files: 2005-06-05 05:16:00 -04:00
vtophys.cc Many files: 2005-06-05 05:16:00 -04:00
vtophys.hh Many files: 2005-06-05 05:16:00 -04:00