From a81c03737addc8e9a9b00cde0354e6c0ab4561af Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 18 Oct 2005 19:07:42 -0400 Subject: Add new function profiling stuff, wrap the pc_sample stuff into it. SConscript: Get rid of the pc_sample stuff and move to the new profiling stuff base/traceflags.py: DPRINTF Stack stuff cpu/base.cc: cpu/base.hh: cpu/exec_context.cc: cpu/exec_context.hh: cpu/simple/cpu.cc: Add profiling stuff kern/kernel_stats.hh: Use a smart pointer sim/system.cc: sim/system.hh: Create a new symbol table that has all of the symbols for a particular system util/stats/categories.py: change around the categories, add categories for function profiling stuff util/stats/profile.py: No profile parsing and display code to deal with function profiling stuff, graph, dot, and text outputs. --HG-- extra : convert_revision : b3de0cdc8bd468e42647966e2640ae009bda9eb8 --- cpu/exec_context.hh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cpu/exec_context.hh') diff --git a/cpu/exec_context.hh b/cpu/exec_context.hh index 6a17951f9..6f38a6960 100644 --- a/cpu/exec_context.hh +++ b/cpu/exec_context.hh @@ -46,8 +46,9 @@ class BaseCPU; #include "sim/system.hh" #include "targetarch/alpha_memory.hh" +class FunctionProfile; +class ProfileNode; class MemoryController; -class StaticInstBase; namespace Kernel { class Binning; class Statistics; } #else // !FULL_SYSTEM @@ -138,7 +139,11 @@ class ExecContext Kernel::Statistics *kernelStats; bool bin; bool fnbin; - void execute(const StaticInstBase *inst); + + FunctionProfile *profile; + ProfileNode *profileNode; + Addr profilePC; + void dumpFuncProfile(); #else Process *process; -- cgit v1.2.3