]> granicus.if.org Git - sysstat/commitdiff
sar: Update help message
authorSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 17 Jan 2018 19:46:08 +0000 (20:46 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 17 Jan 2018 19:46:08 +0000 (20:46 +0100)
Update message displayed by "sar --help": Print the report name
associated with each activity.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sar.c

diff --git a/sar.c b/sar.c
index 1987e99970119aa4d8d813d7b549f6f8f0754e61..2c0c2573d5ec8a9c79ab41fb76aea4725aebfc0e 100644 (file)
--- a/sar.c
+++ b/sar.c
@@ -135,17 +135,17 @@ void usage(char *progname)
 void display_help(char *progname)
 {
        print_usage_title(stdout, progname);
-       printf(_("Main options and reports:\n"));
-       printf(_("\t-B\tPaging statistics\n"));
-       printf(_("\t-b\tI/O and transfer rate statistics\n"));
-       printf(_("\t-d\tBlock devices statistics\n"));
+       printf(_("Main options and reports (report name between square brackets):\n"));
+       printf(_("\t-B\tPaging statistics [A_PAGE]\n"));
+       printf(_("\t-b\tI/O and transfer rate statistics [A_IO]\n"));
+       printf(_("\t-d\tBlock devices statistics [A_DISK]\n"));
        printf(_("\t-F [ MOUNT ]\n"));
-       printf(_("\t\tFilesystems statistics\n"));
-       printf(_("\t-H\tHugepages utilization statistics\n"));
+       printf(_("\t\tFilesystems statistics [A_FS]\n"));
+       printf(_("\t-H\tHugepages utilization statistics [A_HUGE]\n"));
        printf(_("\t-I { <int_list> | SUM | ALL }\n"
-                "\t\tInterrupts statistics\n"));
+                "\t\tInterrupts statistics [A_IRQ]\n"));
        printf(_("\t-m { <keyword> [,...] | ALL }\n"
-                "\t\tPower management statistics\n"
+                "\t\tPower management statistics [A_PWR_...]\n"
                 "\t\tKeywords are:\n"
                 "\t\tCPU\tCPU instantaneous clock frequency\n"
                 "\t\tFAN\tFans speed\n"
@@ -154,7 +154,7 @@ void display_help(char *progname)
                 "\t\tTEMP\tDevices temperature\n"
                 "\t\tUSB\tUSB devices plugged into the system\n"));
        printf(_("\t-n { <keyword> [,...] | ALL }\n"
-                "\t\tNetwork statistics\n"
+                "\t\tNetwork statistics [A_NET_...]\n"
                 "\t\tKeywords are:\n"
                 "\t\tDEV\tNetwork interfaces\n"
                 "\t\tEDEV\tNetwork interfaces (errors)\n"
@@ -176,16 +176,16 @@ void display_help(char *progname)
                 "\t\tUDP6\tUDP traffic\t(v6)\n"
                 "\t\tFC\tFibre channel HBAs\n"
                 "\t\tSOFT\tSoftware-based network processing\n"));
-       printf(_("\t-q\tQueue length and load average statistics\n"));
+       printf(_("\t-q\tQueue length and load average statistics [A_QUEUE]\n"));
        printf(_("\t-r [ ALL ]\n"
-                "\t\tMemory utilization statistics\n"));
-       printf(_("\t-S\tSwap space utilization statistics\n"));
+                "\t\tMemory utilization statistics [A_MEMORY]\n"));
+       printf(_("\t-S\tSwap space utilization statistics [A_MEMORY]\n"));
        printf(_("\t-u [ ALL ]\n"
-                "\t\tCPU utilization statistics\n"));
-       printf(_("\t-v\tKernel tables statistics\n"));
-       printf(_("\t-W\tSwapping statistics\n"));
-       printf(_("\t-w\tTask creation and system switching statistics\n"));
-       printf(_("\t-y\tTTY devices statistics\n"));
+                "\t\tCPU utilization statistics [A_CPU]\n"));
+       printf(_("\t-v\tKernel tables statistics [A_KTABLES]\n"));
+       printf(_("\t-W\tSwapping statistics [A_SWAP]\n"));
+       printf(_("\t-w\tTask creation and system switching statistics [A_PCSW]\n"));
+       printf(_("\t-y\tTTY devices statistics [A_SERIAL]\n"));
        exit(0);
 }