Hello,

If the section of code is executed only a few times, it is easier to call
m5_resetstats and/or m5_dumpstats at the begining and the end of the
section.

You're probably summing the number of issued uops (i.e.,
system.cpu.iq...IntAlu, etc), the sim_insts refers to the committed
instructions (committedInsts).

You can also check the current support of the PMU of your arch (it seems
that for ARM it is working).

Regards,

--
Fernando A. Endo, Post-doc

INRIA Rennes-Bretagne Atlantique
France


2016-03-17 9:26 GMT+01:00 Louisa Bessad <[email protected]>:

> 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
> [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