tools/power turbostat: Fix /dev/cpu_dma_latency warnings
authorPrarit Bhargava <prarit@redhat.com>
Thu, 15 Dec 2022 15:18:16 +0000 (10:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:41 +0000 (12:10 +0200)
commit6ecdea91ef95989bc55bc70e1ee2e2b98e46e93f
tree0a1732a90b0827d67867aa96e4f8844dab33e2c8
parent2a3562ea9d726675e3e38094a508f8dd56726bdc
tools/power turbostat: Fix /dev/cpu_dma_latency warnings

[ Upstream commit 40aafc7d58d3544f152a863a0e9863014b6d5d8c ]

When running as non-root the following error is seen in turbostat:

turbostat: fopen /dev/cpu_dma_latency
: Permission denied

turbostat and the man page have information on how to avoid other
permission errors, so these can be fixed the same way.

Provide better /dev/cpu_dma_latency warnings that provide instructions on
how to avoid the error, and update the man page.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/power/x86/turbostat/turbostat.8
tools/power/x86/turbostat/turbostat.c