summaryrefslogtreecommitdiff
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-11-09 23:00:29 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-11-09 23:00:29 +0000
commit6fcc846b59f97e3e91e0dcffd782b4f570efc046 (patch)
tree2252eb9bc2960e1dfa65d69d4bf663355136821e /usr.bin/vmstat
parentf0c90a0931412a94972c264c9a46cfc9354db252 (diff)
downloadsrc-test2-6fcc846b59f97e3e91e0dcffd782b4f570efc046.tar.gz
src-test2-6fcc846b59f97e3e91e0dcffd782b4f570efc046.zip
vmstat: drop the HighUse field from malloc dump
It is hardwired to "-" since its introduction in 2005. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D27141
Notes
Notes: svn path=/head/; revision=367534
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 8d5db6af078d..aae3af8aeef8 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -1433,8 +1433,8 @@ domemstat_malloc(void)
}
}
xo_open_container("malloc-statistics");
- xo_emit("{T:/%13s} {T:/%5s} {T:/%6s} {T:/%7s} {T:/%8s} {T:Size(s)}\n",
- "Type", "InUse", "MemUse", "HighUse", "Requests");
+ xo_emit("{T:/%13s} {T:/%5s} {T:/%6s} {T:/%8s} {T:Size(s)}\n",
+ "Type", "InUse", "MemUse", "Requests");
xo_open_list("memory");
zones = memstat_malloc_zone_get_count();
for (mtp = memstat_mtl_first(mtlp); mtp != NULL;
@@ -1444,10 +1444,9 @@ domemstat_malloc(void)
continue;
xo_open_instance("memory");
xo_emit("{k:type/%13s/%s} {:in-use/%5ju} "
- "{:memory-use/%5ju}{U:K} {:high-use/%7s} "
- "{:requests/%8ju} ",
+ "{:memory-use/%5ju}{U:K} {:requests/%8ju} ",
memstat_get_name(mtp), (uintmax_t)memstat_get_count(mtp),
- ((uintmax_t)memstat_get_bytes(mtp) + 1023) / 1024, "-",
+ ((uintmax_t)memstat_get_bytes(mtp) + 1023) / 1024,
(uintmax_t)memstat_get_numallocs(mtp));
first = 1;
xo_open_list("size");