Look at the header file at src/sim/pseudo_inst.hh and the source file src/sim/pseudo_inst.cc . The files implement the m5 pseudo instructions. In order to call them you will need to have access to the
running thread context.

On 11/25/2013 07:46 AM, Rohit Shukla wrote:
Hello everyone,

I would like to know is there a way by which I can dump gem5 stats when I execute a particular function in gem5 code. For example, say I when I start executing AccessBlock function in lru.cc, I would like to dump the stats of processor. Is there any way to do something like this?

I've looked into m5ops, but they only work for binaries that are executing the code. I am not able to figure out how to do something similar or use m5ops in a function that is inside gem5 say inValidate() block or AccessBlock().

I tried calling m5op.h and m5ops.h inside my C++ code in gem5, but is gives me an error saying undefined reference to m5_checkpoint.

Thank you very much for the help.

Regards
Rohit Shukla.


_______________________________________________
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