Have a look at the tutorials, particularly the part on "Instrumenting a Benchmarkâ.
http://www.gem5.org/Tutorials Andreas From: gem5-users <[email protected]<mailto:[email protected]>> on behalf of Tod <[email protected]<mailto:[email protected]>> Reply-To: gem5 users mailing list <[email protected]<mailto:[email protected]>> Date: Thursday, 26 November 2015 at 10:23 To: gem5-users <[email protected]<mailto:[email protected]>> Subject: [gem5-users] How to get number of clock cycles (gem5 ticks) for ROI Hi, I am interested to get the number of clock cycles (gem5 ticks) taken by a region of code in gem5 FS mode. For example, if the following is my code snippet: int main() { int i; int j = 10; pt.1 for( i = 0; i <= j; i ++ ) { if( i == 5 ) { continue; } printf("Hello %d\n", i ); } pt.2 return 0; } How can I know the gem5 tick value at pt.1 (i.e. before entering ROI) and at pt.2 (i.e. after leaving ROI)? OR In other words, how many clock cycles will it take in ROI? Thanks. Regards- [http://wwl1453.hanmail.net:4280/@from=sarilian&rcpt=gem5%2Dusers%40gem5%2Eorg&msgid=%3C20151126192318%2EHM%2E0000000000002Pq%40sarilian%2Ewwl1453%2Ehanmail%2Enet%3E] IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
