Hi Zheng, 

If you link your program with the m5 ops in util/m5 you
should be able to put 

m5_dumpreset_stats(0,0); 

__kernel();


m5_dumpreset_stats(0,0); 

and that should accomplish what you want.


Ali 

On 02.04.2012 09:39, 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

Reply via email to