tools/power turbostat: update --list feature
authorLen Brown <len.brown@intel.com>
Fri, 17 Feb 2017 04:07:51 +0000 (23:07 -0500)
committerLen Brown <len.brown@intel.com>
Wed, 1 Mar 2017 05:14:23 +0000 (00:14 -0500)
commit6168c2e0fb5084d187aa8f3ec4093db5e161d4dc
tree69ffd6864d5bc06f1718464b9db8d70dbe9c4632
parent0de6c0df4ecc32ffaf064fea3a43846ba4474bd0
tools/power turbostat: update --list feature

Make it possible to take the entire un-edited output
from `turbostat --list` and feed it to "turbostat --show"
or "turbostat --hide".

To do this, the leading comma was removed
(no mater what columns are active)
and also they dynamic C-state "C1, C2, C3" etc are replaced
by the string "sysfs", which refers to them as a group.

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