changeset 303e409d88d9 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=303e409d88d9
description:
        ExeTrace: Allow subclasses of the tracer to define their own prefix to 
dump

diffstat:

2 files changed, 8 insertions(+), 1 deletion(-)
src/cpu/exetrace.cc |    8 +++++++-
src/cpu/exetrace.hh |    1 +

diffs (34 lines):

diff -r 54ed46881217 -r 303e409d88d9 src/cpu/exetrace.cc
--- a/src/cpu/exetrace.cc       Tue Feb 10 15:49:29 2009 -0800
+++ b/src/cpu/exetrace.cc       Tue Feb 10 15:49:29 2009 -0800
@@ -46,12 +46,18 @@
 namespace Trace {
 
 void
+ExeTracerRecord::dumpTicks(ostream &outs)
+{
+    ccprintf(outs, "%7d: ", when);
+}
+
+void
 Trace::ExeTracerRecord::traceInst(StaticInstPtr inst, bool ran)
 {
     ostream &outs = Trace::output();
 
     if (IsOn(ExecTicks))
-        ccprintf(outs, "%7d: ", when);
+        dumpTicks(outs);
 
     outs << thread->getCpuPtr()->name() << " ";
 
diff -r 54ed46881217 -r 303e409d88d9 src/cpu/exetrace.hh
--- a/src/cpu/exetrace.hh       Tue Feb 10 15:49:29 2009 -0800
+++ b/src/cpu/exetrace.hh       Tue Feb 10 15:49:29 2009 -0800
@@ -57,6 +57,7 @@
     void traceInst(StaticInstPtr inst, bool ran);
 
     void dump();
+    virtual void dumpTicks(std::ostream &outs);
 };
 
 class ExeTracer : public InstTracer
_______________________________________________
m5-dev mailing list
m5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to