Hi all, I am trying to count the number of load/store instructions and arithmetic instructions in a section of code of an application.
My idea is to modify the pipeline by adding a counter in the last stage that will be activated at the beginning and deactivated at the end of the section by a pseudo instructions added to m5. I am wondering if there is a simple way to count the two kinds of instructions between these two calls. Moreover, I saw in the stats file that there is the number of arithmetic, floating, load and store instructions but when I sum these values for all CPUs I don't get the number of simulated instruction given at the beginning of the stats file. Thank you +-------------------------------+ | Louisa Bessad | | PhD student - LIRMM - Sysmic | | Bâtiment 4 Bureau 2.92 | +-------------------------------+ _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users