Searched hist:"2 af4f9b8596afbbd7667a18fa71d117bac227dea" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/power/x86/turbostat/ |
H A D | turbostat.c | diff 2af4f9b8596afbbd7667a18fa71d117bac227dea Sat Jan 30 22:43:10 CST 2021 Len Brown <len.brown@intel.com> tools/power turbostat: add built-in-counter for IPC -- Instructions per Cycle
Use linux-perf to access the hardware instructions-retired counter. This is necessary because the counter is not enabled by default, and also the counter is prone to roll-over -- both of which perf manages.
It is not necessary to use perf for the cycle counter, because turbostat already needs to collect delta-aperf to calcuate frequency.
Signed-off-by: Len Brown <len.brown@intel.com>
|