tools/power turbostat: Add --show and --hide parameters
authorLen Brown <len.brown@intel.com>
Fri, 10 Feb 2017 05:25:41 +0000 (00:25 -0500)
committerLen Brown <len.brown@intel.com>
Sat, 25 Feb 2017 21:52:28 +0000 (16:52 -0500)
commit812db3f77b9a3f6ed59baf7a0d5c3fd8ec8ef86a
treece938c6bdc3a2ca51bd7a3b59bcd1d78ac8f5796
parent678a3bd1b3de6d2ebf604e7d708bc8150bb667e9
tools/power turbostat: Add --show and --hide parameters

Add the "--show" and "--hide" cmdline parameters.

By default, turbostat shows all columns.

turbostat --hide counter_list
will continue showing all columns, except for those listed.

turbostat --show counter_list
will show _only_ the listed columns

These features work for built-in counters, and have no effect
on columns added with the --add parameter.

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