Commit 4bba9fb
committed
tools/power turbostat: Handle non-root legacy-uncore sysfs permissions
JIRA: https://issues.redhat.com/browse/RHEL-110614
commit e60a13b
Author: Len Brown <len.brown@intel.com>
Date: Sat Aug 9 16:31:31 2025 -0400
tools/power turbostat: Handle non-root legacy-uncore sysfs permissions
/sys/devices/system/cpu/intel_uncore_frequency/package_X_die_Y/
may be readable by all, but
/sys/devices/system/cpu/intel_uncore_frequency/package_X_die_Y/current_freq_khz
may be readable only by root.
Non-root turbostat users see complaints in this scenario.
Fail probe of the interface if we can't read current_freq_khz.
Reported-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Original-patch-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: David Arcari <darcari@redhat.com>1 parent 5e81854 commit 4bba9fb
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7002 | 7002 | | |
7003 | 7003 | | |
7004 | 7004 | | |
7005 | | - | |
| 7005 | + | |
| 7006 | + | |
7006 | 7007 | | |
7007 | 7008 | | |
7008 | 7009 | | |
| |||
0 commit comments