Hi,
I try use gem.prof and find out what kind of profiling result it can offer.
My work is as the following, but I haven't find extra profiling results.
Can you give some advise about how to use the gem.prof ?
Joshua
-----------------------------------------------------------------------------------------------
2.1 build simulators as the following:
scons build/ARM_SE/gem5.prof
scons build/ARM_SE/gem5.opt
2.2 test as the below:
[linjiah@localhost gem5]$ build/ARM_SE/gem5.prof --outdir=prof_test
configs/example/se.py -c tests/test-progs/hello/bin/arm/linux/hello
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Sep 25 2011 11:54:03
gem5 started Sep 25 2011 12:09:37
gem5 executing on localhost.localdomain
command line: build/ARM_SE/gem5.prof --outdir=prof_test
configs/example/se.py -c tests/test-progs/hello/bin/arm/linux/hello
Global frequency set at 1000000000000 ticks per second
0: system.remote_gdb.listener: listening for remote gdb on port 7001
**** REAL SIMULATION ****
info: Entering event queue @ 0. Starting simulation...
Hello world!
hack: be nice to actually delete the event here
Exiting @ tick 3107500 because target called exit()
[linjiah@localhost gem5]$
2.3 compare the gem5.prof's output and gem5.opt's output.
[linjiah@localhost opt_test]$ diff -u stats.txt ../prof_test/stats.txt
--- stats.txt 2011-09-25 12:13:03.000000000 -0400
+++ ../prof_test/stats.txt 2011-09-25 12:09:37.000000000 -0400
@@ -3,10 +3,10 @@
sim_seconds 0.000003
# Number of seconds simulated
sim_ticks 3107500
# Number of ticks simulated
sim_freq
1000000000000 # Frequency of simulated ticks
-host_inst_rate 55605
# Simulator instruction rate (inst/s)
-host_tick_rate 27850441
# Simulator tick rate (ticks/s)
-host_mem_usage 705908
# Number of bytes of host memory used
-host_seconds 0.11
# Real time elapsed on the host
+host_inst_rate 567048
# Simulator instruction rate (inst/s)
+host_tick_rate 283404834
# Simulator tick rate (ticks/s)
+host_mem_usage 729740
# Number of bytes of host memory used
+host_seconds 0.01
# Real time elapsed on the host
sim_insts 6203
# Number of instructions simulated
system.cpu.dtb.inst_hits 0
# ITB inst hits
system.cpu.dtb.inst_misses 0
# ITB inst misses
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users