diff options
author | 2024-04-25 17:54:18 +0200 | |
---|---|---|
committer | 2024-05-01 00:04:25 -0400 | |
commit | 0e39702fbbcdb16ad349439065d24a3bb5e2f331 (patch) | |
tree | d4676ee46fd47243da2064cae6d1440a4fcaf5e6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tools/power turbostat: Replace _Static_assert with BUILD_BUG_ON (diff) | |
download | wireguard-linux-0e39702fbbcdb16ad349439065d24a3bb5e2f331.tar.xz wireguard-linux-0e39702fbbcdb16ad349439065d24a3bb5e2f331.zip |
tools/power turbostat: Enable non-privileged users to read sysfs counters
A group of counters called "sysfs" displays software
C-state request counts and resulting perceived C-state residency.
They are not built-in counters that turbostat knows about ahead of time,
rather they are discovered in sysfs when turbostat starts.
Thus, they are added dynamically, using the same interface
as user-added MSR counters.
When turbostat enters "no-msr" mode, such as when running as a
non-privileged user, it clears all added counters.
Updating that to clear only actual MSR added counters
allows regular users to see the sysfs counters.
[lenb: commit message]
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions