]> granicus.if.org Git - sysstat/commitdiff
sadf: Update option -q to support PSI statistics
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 12 Apr 2020 09:00:20 +0000 (11:00 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 12 Apr 2020 09:00:20 +0000 (11:00 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sadf.c

diff --git a/sadf.c b/sadf.c
index 34e317ba24fdf2bdbfea9d3e41a6f1d2ae4cae7f..dfdca38d7fbf1384a8ddd4b1f5e879ccc3f2b539 100644 (file)
--- a/sadf.c
+++ b/sadf.c
@@ -1668,6 +1668,19 @@ int main(int argc, char **argv)
                        }
                }
 
+               else if (!strcmp(argv[opt], "-q")) {
+                       if (!sar_options) {
+                               usage(argv[0]);
+                       }
+                       else if (!argv[++opt]) {
+                               SELECT_ACTIVITY(A_QUEUE);
+                       }
+                       /* Parse option -q */
+                       else if (parse_sar_q_opt(argv, &opt, act)) {
+                               SELECT_ACTIVITY(A_QUEUE);
+                       }
+               }
+
                else if (!strncmp(argv[opt], "-", 1)) {
                        /* Other options not previously tested */
                        if (sar_options) {