diff options
author | Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com> | 2024-01-11 18:42:22 +0300 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2024-04-02 19:50:11 +0300 |
commit | e48934c9f1048ed4640b60321baf1986d1a470e1 (patch) | |
tree | 4e8f7ad70652941a9291a2fc6f5f6cb4835d0979 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a0e86c90b83c118985260e36490583b5a38d4359 (diff) | |
download | linux-e48934c9f1048ed4640b60321baf1986d1a470e1.tar.xz |
tools/power turbostat: Add reading aperf and mperf via perf API
By using the perf API we spend less time in between the reads of the
counters, resulting in more accurate calculations of the dependent
metrics.
Using perf API is also usually faster overall, although cache miss, if
we get one, is more costly when using perf vs MSR driver.
We would fallback to the msr reads if the sysfs isn't there or when in
--no-perf mode.
Signed-off-by: Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions