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