slabtop: Check for bad d and o option combination

If you run slabtop with the -d option and then -o option the
delay gets set to zero and it runs forever. slabtop now checks
for this combination and errors.

Adding a DEJAGNU test also found that none of the slabtop
checks were running so they got added to the list and only the
ones that need /proc/slabinfo (if not readable) are skipped.

References:
 #160
This commit is contained in:
Craig Small
2021-03-11 22:10:37 +11:00
parent 15c8b8e2cf
commit 2e1e8fcc85
5 changed files with 29 additions and 7 deletions

1
NEWS
View File

@@ -3,6 +3,7 @@ procps-ng-NEXT
* Rename pwait to pidwait
* library: renamed to libproc-2 and reset to 0:0:0
* ps: Add OOM and OOMADJ fields issue #198
* slabtop: Don't combine d and o options issue #160
procps-ng-3.3.17
---------------