Hi Zheng,

You can insert "m5.stats.reset()" immediately before the __kernel() function to restart the statistics and then call "m5.stats.dump()" following the __kernel() function to see the effect.

Tao

On 04/02/2012 09:39 AM, Zheng Wang wrote:
Hi,

I wonder how I can dump simulation statistics before and after calling a function in the SE mode (ARM cpu).

For example, I want to collect simulation stats for executing the __kernel() function in the following code:

int main()
{
  ..
  __kernel();
 …
}
Using m5.stats.dump() seems to only give simulation stats for the whole program execution.

Do I have to use a special instruction to trigger the python script?

Cheers,
Zheng


_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to