]> git.baikalelectronics.ru Git - kernel.git/commit
tools/power turbostat: support "--hide C1" etc.
authorLen Brown <len.brown@intel.com>
Wed, 22 Feb 2017 04:21:13 +0000 (23:21 -0500)
committerLen Brown <len.brown@intel.com>
Wed, 1 Mar 2017 05:14:24 +0000 (00:14 -0500)
commit6550023a28b30a4b736039f44943d27aced86e7d
tree24821d73cfa4b14117ec23e51d72e9717127a25b
parentdb0bd796dab2e8460be29e21122c12ae080faa30
tools/power turbostat: support "--hide C1" etc.

Originally, the only way to hide the sysfs C-state statistics columns
was with "--hide sysfs".  This was because we process "--hide" before
we probe for those columns.

hack --hide to remember deferred hide requests, and apply
them when sysfs is probed.

"--hide sysfs" is still available as short-hand to refer to
the entire group of counters.

The down-side of this change is that we no longer error check for
bogus --hide column names.  But the user will quickly figure that
out if a column they mean to hide is still there...

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