· ☕ 2 分钟
PMC: retired instruction
http://web.eece.maine.edu/~vweaver/projects/perf_counters/retired_instructions.html
x86 and x86_64
Retired instruction counts on x86 in general also include at least one extra instruction each time a hardware interrupt happens, even if only user space code is being monitored. The one exception to this is the Pentium 4 counter.
Another special case are rep
prefixed string instructions. Even if the instruction repeats many times, the instruction is only counted as one instruction.