Doubt in calculating CPIexe

Doubt in calculating CPIexe


I am trying to verify the following equation through the performance counters.
Frequency utilization in a time interval (let's assume 50 ms)

f= IC*CPIexe + Memory Stalls

IC - Instructions retired
CPI-CPI execution
Memory Stalls-IFU_Mem STall

How to determine CPIexe.

CPIexe=(Unhalted Core cycles-Mem Stalls)
Instruction Retired

Is the above equation correct?
Waiting for your replies.

Thank You

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.