On Fri, January 25, 2013 9:06 am, Rizwana Begum wrote: > Hello All, > > I want to print current tick just before starting my benchmark. I use .rcS > scripts to run my benchmark after boot. I use dumpstats in my scripts for > periodically dumping stats. Is there any way to dump the current tick > using > any existing utility? I tried a couple of things to print it. > > 1. I wrote a .cc file and called curTick() function in it by including > src/sim/core.hh. I wanted to statically compile this file and place the > executable in disk image so that I can use it in .rcS scripts as a command > line utility. However, compilation fails with an error "undefined > reference > to _curTick"
This approach will not work. > > 2. I tried adding a function in pseudo_inst.cc (which defines dumpstats > etc) for printing current tick. But, I am not sure how to compile m5 > utility to add this new function to it. > This should. Take look at the files in the directory util/m5. > I am not sure if I can do it from Gem5 simulation as it might not have the > notion as to when benchmark starts or does it? > You can actually just add a call to dump statistics before the call for execution of the benchmark. The stats file will have the tick value when the statistics were dumped. -- Nilay _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
