tools/power turbostat: if --num_iterations, print for specific number of iterations
authorChen Yu <yu.c.chen@intel.com>
Thu, 26 Apr 2018 00:41:03 +0000 (08:41 +0800)
committerLen Brown <len.brown@intel.com>
Sat, 2 Jun 2018 03:12:45 +0000 (23:12 -0400)
commit023fe0ac975e4dff592ce90bbd12747dedf7c598
tree42a7e6da73b0a220e97c597ff48b0302516a293e
parent997e53950e3e71ceb13a7cc220d430b7cb78ef8f
tools/power turbostat: if --num_iterations, print for specific number of iterations

There's a use case during test to only print specific round of iterations
if --num_iterations is specified, for example, with this patch applied:

turbostat -i 5 -n 4
will capture 4 samples with 5 seconds interval.

[lenb: renamed to --num_iterations from --iterations]

Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Reviewed-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.8
tools/power/x86/turbostat/turbostat.c