Yeah, that was the issue. Thanks a lot Ali !!!

On Wed, Mar 2, 2011 at 1:52 PM, Ali Saidi <[email protected]> wrote:

> On Wed, 2 Mar 2011 13:29:04 -0600, reena panda <[email protected]>
> wrote:
>
> Hi,
>
> I am trying to collect some statistics from m5 and I am running it in the
> AtomicSimpleCPU model, ALPHA FS Mode.
> What I understand from the code is that in atomic model,
> a) "staticInstPtr" holds some details about the currently executing
> instructions,
> b) while the "Trace::InstRecord*  traceData" can be used to collect dynamic
> statistics, like Effective addresses, final data values as the instruction
> gets executed.
> Please correct me if I am wrong.
>
> I also checked that "traceData" gets initialized in the preExecute function
> in cpu/simple/base.cc as follows:-
>
> traceData = tracer->getInstRecord(curTick, tc, curStaticInst,
> thread->readPC(), curMacroStaticInst, thread->readMicroPC());
> if(traceData)
>     printf("TraceData Initialized");
>
> But when I am trying to check if tracedata was allocated after the above
> instruction is executed, it seems that tracedata is still "Null".
> Why is it not initialised then? I am not able to find which getInstRecord
> is being referred here.
>
> What could I do to collect the memory reference effective addresses/data
> values then? Any pointers to what I should look at?
>
> Thanks,
> Reena
>
> I haven't actually looked at the code, but I'm guessing it's NULL beacuse
> the --trace-flag=Exec isn't on the command line. There is code in
> getInstRecord that just returns null if tracing isn't enabled because it
> slows down the simulator.
>
>
>
> Ali
>
>
>
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to