The idea here is to make it possible for the user to *unselect* an
activity which is collected by default by sadc.
For example, you can now choose to collect all
possible statistics except those for interrupts:
sadc -S XALL,-A_IRQ (...)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
usage(argv[0]);
}
}
+ else if (!strncmp(p, "-A_", 3)) {
+ /* Unselect activity by name */
+ for (i = 0; i < NR_ACT; i++) {
+ if (!strcmp(p + 1, act[i]->name)) {
+ act[i]->options &= ~AO_COLLECTED;
+ break;
+ }
+ }
+ if (i == NR_ACT) {
+ usage(argv[0]);
+ }
+ }
else {
usage(argv[0]);
}