Skip to content

Commit e48934c

Browse files
Patryk Wlazlynlenb
authored andcommitted
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 <[email protected]> Signed-off-by: Len Brown <[email protected]>
1 parent a0e86c9 commit e48934c

File tree

1 file changed

+301
-73
lines changed

1 file changed

+301
-73
lines changed

0 commit comments

Comments
 (0)