]> granicus.if.org Git - procps-ng/commit
slabtop: Check for bad d and o option combination
authorCraig Small <csmall@dropbear.xyz>
Thu, 11 Mar 2021 11:10:37 +0000 (22:10 +1100)
committerCraig Small <csmall@dropbear.xyz>
Thu, 11 Mar 2021 11:10:37 +0000 (22:10 +1100)
commit2e1e8fcc850224ac4106c20671460fdf509bc1cd
tree69c4cd480989410c9b4d21bc366604e6dd871379
parent15c8b8e2cfa8c13b4576236458dbdb399c713362
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
NEWS
slabtop.1
slabtop.c
testsuite/Makefile.am
testsuite/slabtop.test/slabtop.exp