I have a program which uses perf_event.h to calculate the IPC of a specific running process. I read the INSTRUCTIONS counter and the CPU_CYCLES counter to do so.
My question is about the value returned by the INSTRUCTIONS counter. Does it contain the floating-point operations? If not, how can I get this value?
Note: I'm talking about perf_event.h but, yes, I'm also talking about
perf
and the counters I mentioned are the ones you can find with the commandperf list
.