From: Sebastien GODARD Date: Sun, 12 Apr 2020 08:29:46 +0000 (+0200) Subject: sar: Add PSI keyword to option -q X-Git-Tag: v12.3.3~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d231e595e63151b5098e1d4f014055871cb2db44;p=sysstat sar: Add PSI keyword to option -q Specifying "sar -q PSI" will be equivalent to "sar -q CPU,MEM,IO". Signed-off-by: Sebastien GODARD --- diff --git a/sa.h b/sa.h index 3f4189e..b1abff4 100644 --- a/sa.h +++ b/sa.h @@ -214,6 +214,7 @@ #define K_MOUNT "MOUNT" #define K_NFS "NFS" #define K_NFSD "NFSD" +#define K_PSI "PSI" #define K_SID "SID" #define K_SOCK "SOCK" #define K_SOCK6 "SOCK6" diff --git a/sa_common.c b/sa_common.c index bd5caca..c37fde1 100644 --- a/sa_common.c +++ b/sa_common.c @@ -2616,6 +2616,11 @@ int parse_sar_q_opt(char *argv[], int *opt, struct activity *act[]) else if (!strcmp(t, K_PSI_MEM)) { SELECT_ACTIVITY(A_PSI_MEM); } + else if (!strcmp(t, K_PSI)) { + SELECT_ACTIVITY(A_PSI_CPU); + SELECT_ACTIVITY(A_PSI_IO); + SELECT_ACTIVITY(A_PSI_MEM); + } else if (!strcmp(t, K_ALL)) { SELECT_ACTIVITY(A_QUEUE); SELECT_ACTIVITY(A_PSI_CPU);