Sysstat command options can now be 'collapsed' (grouped) when
not followed by an argument. So it's now possible for example
to enter 'iostat -px 2 5' since no device name is given to
option -p.
This also concerns pidstat option -U: You can now enter for example
'pidstat -wU' to display switching activity for tasks together with
their user name.
Changes:
xxxx/xx/xx: Version 10.1.6 - Sebastien Godard (sysstat <at> orange.fr)
+ * Sysstat command options can now be 'collapsed' (grouped) when
+ not followed by an argument. So it's now possible for example
+ to enter 'iostat -px 2 5' since no device name is given to
+ option -p. This also concerns pidstat option -U.
* Typos fixed. README file updated.
* Yet another cosmetic fix in pidstat manual page.
/* Process args... */
while (opt < argc) {
+ /* -p option used individually. See below for grouped use */
if (!strcmp(argv[opt], "-p")) {
flags |= I_D_PARTITIONS;
if (argv[++opt] &&
flags |= I_D_DEVMAP_NAME;
break;
+ case 'p':
+ /* If option -p is grouped then it cannot take an arg */
+ flags |= I_D_PARTITIONS + I_D_PART_ALL;
+ break;
+
case 'T':
/* Display stats only for the groups */
flags |= I_D_GROUP_TOTAL_ONLY;
}
}
+ /* Option used individually. See below for grouped option */
else if (!strcmp(argv[opt], "-U")) {
/* Display username instead of UID */
pidflag |= P_D_USERNAME;
pidflag |= P_D_TID;
break;
+ case 'U':
+ /* When option is grouped, it cannot take an arg */
+ pidflag |= P_D_USERNAME;
+ break;
+
case 'u':
/* Display CPU usage */
actflag |= P_A_CPU;