]> git.baikalelectronics.ru Git - kernel.git/commit
tools/power turbostat: extend --add option to accept /sys path
authorLen Brown <len.brown@intel.com>
Wed, 8 Feb 2017 07:41:51 +0000 (02:41 -0500)
committerLen Brown <len.brown@intel.com>
Wed, 1 Mar 2017 05:14:21 +0000 (00:14 -0500)
commita42fcf65dbd2a9f2f7122506faa55b215faef739
treea76f16fc95d652bee93e95ee37d2fac2f74506eb
parent486dd2ac17a039e039844aa9b545a2a5bf4f9016
tools/power turbostat: extend --add option to accept /sys path

Previously, the --add option could specify only an MSR.

Here is is extended so an arbitrary /sys attribute,
as specified by an absolute file path name.

sudo ./turbostat --add /sys/devices/system/cpu/cpu0/cpuidle/state5/usage

Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c