During perf performance profiling on the K3/X100 platform, we found that changes in frontend and backend stall events were clearly inconsistent with the workload characteristics:
- Frequent random memory accesses and L1D cache misses were primarily counted under
stalled-cycles-frontend - Indirect branches and control-flow pressure were primarily counted under
stalled-cycles-backend - This behavior is opposite to the standard semantics of the two generic events in Linux perf, suggesting that the underlying event mappings may have been swapped
The event encodings in perf are:
stalled-cycles-frontend:
type = PERF_TYPE_HARDWARE
config = 0x7 (PERF_COUNT_HW_STALLED_CYCLES_FRONTEND)
stalled-cycles-backend:
type = PERF_TYPE_HARDWARE
config = 0x8 (PERF_COUNT_HW_STALLED_CYCLES_BACKEND)
Could you please help confirm whether the PMU event mappings are correct?