K3 stalled-cycles-frontend and stalled-cycles-backend PMU event semantics appear to be mapped incorrectly

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?

感谢指正,相关问题我们会尽快修复

您好,能否提供详细的PMU事件对照表,方便我们perf分析性能,分支预测,lunch失败等,TLB相关miss等详细PMU对应r7,r8这类更多的事件表

这个暂时不对外提供的