aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNathan Ciobanu <nathan.d.ciobanu@linux.intel.com>2018-06-13 22:51:33 -0400
committerLen Brown <len.brown@intel.com>2018-06-20 13:55:04 -0400
commitcc4816503f835c7cea184776fe8ae5bb3f505083 (patch)
treee1a82ecc042181f0d00e39b50b5eb39e16bf9903 /tools
parent2ee19bdea1bbc04a06606b5c9681a07d005ecbaf (diff)
tools/power turbostat: add single character tokens to help
Improve the help() output by adding the single character tokens (e.g -a). Signed-off-by: Nathan Ciobanu <nathan.d.ciobanu@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/x86/turbostat/turbostat.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index d33b655299ba..2dcc05f3ee6f 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -524,17 +524,20 @@ void help(void)
524 "when COMMAND completes.\n" 524 "when COMMAND completes.\n"
525 "If no COMMAND is specified, turbostat wakes every 5-seconds\n" 525 "If no COMMAND is specified, turbostat wakes every 5-seconds\n"
526 "to print statistics, until interrupted.\n" 526 "to print statistics, until interrupted.\n"
527 "--add add a counter\n" 527 " -a, --add add a counter\n"
528 " eg. --add msr0x10,u64,cpu,delta,MY_TSC\n" 528 " eg. --add msr0x10,u64,cpu,delta,MY_TSC\n"
529 "--cpu cpu-set limit output to summary plus cpu-set:\n" 529 " -c, --cpu cpu-set limit output to summary plus cpu-set:\n"
530 " {core | package | j,k,l..m,n-p }\n" 530 " {core | package | j,k,l..m,n-p }\n"
531 "--interval sec.subsec Override default 5-second measurement interval\n" 531 " -i, --interval sec.subsec\n"
532 "--list list column headers only\n" 532 " Override default 5-second measurement interval\n"
533 "--num_iterations num number of the measurement iterations\n" 533 " -l, --list list column headers only\n"
534 "--out file create or truncate \"file\" for all output\n" 534 " -n, --num_iterations num\n"
535 "--quiet skip decoding system configuration header\n" 535 " number of the measurement iterations\n"
536 "--help print this help message\n" 536 " -o, --out file\n"
537 "--version print version information\n" 537 " create or truncate \"file\" for all output\n"
538 " -q, --quiet skip decoding system configuration header\n"
539 " -h, --help print this help message\n"
540 " -v, --version print version information\n"
538 "\n" 541 "\n"
539 "For more help, run \"man turbostat\"\n"); 542 "For more help, run \"man turbostat\"\n");
540} 543}