What are perf cache events meaning?

前端 未结 3 828
生来不讨喜
生来不讨喜 2020-12-08 00:41

I am trying to figure out why a modified C program is running faster than its non modified counter part (I am adding very few lines of code to perform some additional work).

3条回答
  •  有刺的猬
    2020-12-08 01:30

    According to perf tutorial, Performance Monitoring Unit (PMU) events or hardware events refer to those events which can be mapped directly to CPU specific events for a CPU vendor. But the hardware cache events refer to some hardware events monikers provided by perf, which may be mapped to actual events provided by the CPU. For the list of perf's cache events use perf list cache in Linux terminal.

提交回复
热议问题