Author: mjg
Date: Mon Nov  9 23:00:29 2020
New Revision: 367534
URL: https://svnweb.freebsd.org/changeset/base/367534

Log:
  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

Modified:
  head/usr.bin/vmstat/vmstat.c

Modified: head/usr.bin/vmstat/vmstat.c
==============================================================================
--- head/usr.bin/vmstat/vmstat.c        Mon Nov  9 22:59:41 2020        
(r367533)
+++ head/usr.bin/vmstat/vmstat.c        Mon Nov  9 23:00:29 2020        
(r367534)
@@ -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");
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to