Hi,
Below is the execution flow of instruction tracer. Hope useful for you. Flow of InstTracer cpu/BaseCPU.py default_tracer = ExeTracer() tracer = Param.InstTracer(default_tracer, "Instruction tracer") cpu/simple/base.cc BaseSimpleCPU::preExecute() traceData = tracer->getInstRecord(...) BaseSimpleCPU::postExecute() traceData->dump() cpu/exetrace.cc Trace::ExeTracerRecord::dump() Trace::ExeTracerRecord::traceInst() dump instruction information into output (default output: trace-output) Best regards, Yongbing Huang From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] On Behalf Of Yanqi Zhou Sent: Friday, May 24, 2013 10:30 AM To: gem5 users mailing list [gem5-users@gem5.org] Subject: [gem5-users] Trace file Hi Everyone, I have a question about the trace files. In src/cpu/exetrace.cc, there is a Trace::ExeTracerRecord::traceInst(StaticInstPtr inst, bool ran) I know this function is used to print out the trace, but I searched everywhere, could not find where it is used. I need to know where it is used because I need to build an interface between gem5 and my own simulator so that instead of using the trace to drive my simulator, I can directly feed the trace to my simulator. Can anyone help me with this problem? Thanks,
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users