tools/power turbostat: reduce debug output
authorLen Brown <len.brown@intel.com>
Sat, 22 Sep 2018 02:26:57 +0000 (22:26 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 2 Nov 2018 18:06:31 +0000 (14:06 -0400)
commit0ec712e36c1d5bafe6e65e53a19f136b778866cd
tree1aced6c00ca36a91cda44fe2ae30010f12ca3af8
parent3404155190ce09a1e5d8407e968fc19aac4493e3
tools/power turbostat: reduce debug output

A recent turbostat release increased topo.max_cpu_num
to make it convenient to handle sysfs bitmaps of 32-cpus.

But users, who regularly make use of "--debug", then saw a bunch of output
for cpus that were not present.

Remove that extra output by checking a cpu is online before dumping its info.

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