linux/tools/power
Patryk Wlazlyn 0e39702fbb 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>
2024-05-01 00:04:25 -04:00
..
acpi ACPICA: Update all copyrights/signons to 2023 2023-04-06 20:29:11 +02:00
cpupower Fix cpupower-frequency-info.1 man page typo 2024-03-06 09:27:57 -07:00
pm-graph PM: tools: Fix sleepgraph syntax error 2023-11-20 17:59:58 +01:00
x86 tools/power turbostat: Enable non-privileged users to read sysfs counters 2024-05-01 00:04:25 -04:00