What is the default cpu-type in gem5? If it is NOT O3 (detailed), then your trace file will remain empty because your specified debug flag (--debug-flags=O3PipeView) do not apply to simple and in-order cpus. Also make sure "-m 1000000000000" is right.
Amin On Sun, Jul 15, 2012 at 9:06 AM, Romulo Curty Cerqueira <cu...@ieee.org>wrote: > Hi gem5 users > > I have tried to test information visualization as described in > http://www.m5sim.org/Visualization but when I run > > [user@machine gem5]$ ./build/ARM/gem5.debug --debug-flags=O3PipeView > --trace-start=0 --trace-file=trace.out ./configs/example/se.py --caches -c > ./tests/test-progs/hello/bin/arm/linux/hello -m 1000000000000 > or > [user@machine gem5]$ ./build/ARM/gem5.opt --debug-flags=O3PipeView > --trace-start=0 --trace-file=trace.out ./configs/example/se.py --caches -c > ./tests/test-progs/hello/bin/arm/linux/hello -m 1000000000000 > > it returns the same, as follows: > > gem5 Simulator System. http://gem5.org > gem5 is copyrighted software; use the --copyright option for details. > > gem5 compiled Jul 13 2012 12:55:46 > gem5 started Jul 15 2012 11:32:40 > gem5 executing on i7-extreme > command line: ./build/ARM/gem5.debug --debug-flags=O3PipeView > --trace-start=0 --trace-file=trace.out ./configs/example/se.py --caches -c > ./tests/test-progs/hello/bin/arm/linux/hello -m 1000000000000 > Global frequency set at 1000000000000 ticks per second > 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000 > **** REAL SIMULATION **** > info: Entering event queue @ 0. Starting simulation... > Hello world! > hack: be nice to actually delete the event here > Exiting @ tick 3114000 because target called exit() > > and the file m5out/stats.txt is generated fine, but the file > m5out/trace.out is generated with 0 bytes size, so the next > http://www.m5sim.org/Visualization test command > $ ./util/o3-pipeview.py -c 500 -o pipeview.out --color m5out/trace.out > cannot work. > > I supposed I should use gem5.prof version, and I have also tried that. But > it fails, as follows: > > [user@machine gem5]$ ./build/ARM/gem5.prof --debug-flags=O3PipeView > --trace-start=0 --trace-file=trace.out ./configs/example/se.py --caches -c > ./tests/test-progs/hello/bin/arm/linux/hello -m 1000000000000 > > gem5 Simulator System. http://gem5.org > gem5 is copyrighted software; use the --copyright option for details. > > gem5 compiled Jul 15 2012 10:43:52 > gem5 started Jul 15 2012 11:33:18 > gem5 executing on i7-extreme > command line: ./build/ARM/gem5.prof --debug-flags=O3PipeView > --trace-start=0 --trace-file=trace.out ./configs/example/se.py --caches -c > ./tests/test-progs/hello/bin/arm/linux/hello -m 1000000000000 > fatal: Tracing is not enabled. Compile with TRACING_ON > [user@machine gem5]$ > > So I have tried to recompile gem5 using (as found at old messages from > this list, but I am not sure about this way...): > > [user@machine gem5]$ scons TRACING_ON=True build/ARM/gem5.prof > and > [user@machine gem5]$ scons TRACING_ON=1 build/ARM/gem5.prof > > and both commands compiles without errors but also fails to generate a non > empty m5out/trace.out file after simulation, as above. > > My question: > What should I do to have a non empty m5out/trace.out file after simulation? > > Thanks in advance for your attention. > > Regards > > Romulo > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users