Hi Nilay,

Thanks for your reply.

I did find that function. That function is just an if-else. So I added
several printf before "if-else", in "if case", and in "else case". Finally
I added a dead loop in the beginning of the function. But it still didn't
work, and it also seemed that that function was never called. Could you
please give me some hints on this? Thanks!


2012/11/12 Nilay Vaish <[email protected]>

> On Mon, 12 Nov 2012, lee david wrote:
>
>  Hi everyone,
>>
>> I want to trace x86 instruction, macro, and micro.
>>
>> I ran gem5 with "build/X86/gem5.opt --trace-file=trace.out --trace-start=0
>> --stats-file=trace.static --debug-flags=ExecMacro configs/example/fs.py
>> --disk-image=/gem5/full_**system_images/disks/linux-x86.**img
>> --kernel=/home/lihao/work/**simulators/gem5/full_system_**
>> images/binaries/x86_64-**vmlinux-2.6.22.9",
>> and tried to change --debug-flags to gat macro or micro.
>>
>> Setting debug-level to Exec I can get micro code trace, however,
>> setting debug-level to ExecMacro or ExecMicro I can get nothing. Why Exec
>> could work, while ExecMacro and ExecMicro could not? Did I miss something
>> here?
>>
>>
> Take a look at file src/cpu/exetrace.cc. The function
> Trace::ExeTracerRecord::dump() is probably controlling the output of these
> debug flags. If the function is not working correctly, you might want to
> modify it as per your need.
>
> --
> Nilay
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to