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)
committerLen Brown <len.brown@intel.com>
Fri, 17 Mar 2023 15:23:38 +0000 (11:23 -0400)
commit40aafc7d58d3544f152a863a0e9863014b6d5d8c
treecd13fff24b6b11fc2b7d93011b431f5f2c994ed9
parent9c08581728ccadc6b9e4135b7b8d31948e814f6f
tools/power turbostat: Fix /dev/cpu_dma_latency warnings

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>
tools/power/x86/turbostat/turbostat.8
tools/power/x86/turbostat/turbostat.c