Searched hist:"9678 a79d140616195abeb0c8111f3fe99c955303" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/power/x86/turbostat/ |
H A D | turbostat.c | diff 9678a79d140616195abeb0c8111f3fe99c955303 Fri Jan 19 12:25:42 CST 2024 Len Brown <len.brown@intel.com> tools/power turbostat: Fix warning upon failed /dev/cpu_dma_latency read
[ Upstream commit b6fe938317eed58e8c687bd5965a956e15fb5828 ]
Previously a failed read of /dev/cpu_dma_latency erroneously complained turbostat: capget(CAP_SYS_ADMIN) failed, try "# setcap cap_sys_admin=ep ./turbostat
This went unnoticed because this file is typically visible to root, and turbostat was typically run as root.
Going forward, when a non-root user can run turbostat... Complain about failed read access to this file only if --debug is used.
Signed-off-by: Len Brown <len.brown@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
|