From f70f8722acd43bfa392d4bbdf2b723a9591fcbca Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 6 Jan 2020 21:23:29 -0800 Subject: [PATCH] vmstat - Add verbose for -m * If -m -v is specified all memory pools are dumped, even if not in use. --- usr.bin/vmstat/vmstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 9b5f2372c9..78af4278a7 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -1018,7 +1018,7 @@ domem(void) long ks_calls; ks_calls = cpuagg(ks, KSCALLS); - if (ks_calls == 0) + if (ks_calls == 0 && verbose == 0) continue; ks_inuse = cpuagg(ks, KSINUSE); -- 2.28.0