Which instruction is recorded when an overflow of PMC occurs?

72 Views Asked by At

When profiling a program with "cpu-cycle" event using "pref record -p $pid && perf report" command, I think the underlying hardware PMC does the following things:

  1. Increase the counter when a cycle come
  2. Record the "current instruction" when the counter overflows

I wonder which instruction is recorded as "current instruction" in step-2 since there should be several instructions on the fly in different pipeline stages or execution units.

0

There are 0 best solutions below