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" 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. 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? Any help will be greatly appreciated. Thank you -Rizwana
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
