tools/power/turbostat: bugfix "--show IPC"
authorLen Brown <len.brown@intel.com>
Wed, 28 Jun 2023 13:40:53 +0000 (09:40 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 8 Nov 2023 04:26:42 +0000 (23:26 -0500)
commitf2c1dba31133233697fc96e808c6005fc304a8e9
tree28b7f5f592bfb34efaf0412ed5dae1bf2f3224fd
parent956dbd3de400a5665faf08a8588556db9c1bb56e
tools/power/turbostat: bugfix "--show IPC"

turbostat --show IPC

displays "inf" for the IPC column

turbostat was missing the explicit dependency of IPC on APERF,
and thus neglected to collect APERF when only IPC was requested.

typcial use:

turbostat --quiet --show CPU,IPC

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