git: 6feb4f363cdb - stable/14 - vmstat: Add a column to vmstat -o output for laundry pages

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 29 Oct 2024 13:34:17 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=6feb4f363cdbe6a41ca631b37d1451cd5f1191e0

commit 6feb4f363cdbe6a41ca631b37d1451cd5f1191e0
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-10-22 12:48:04 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-10-29 13:04:25 +0000

    vmstat: Add a column to vmstat -o output for laundry pages
    
    Reviewed by:    kib
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D47215
    
    (cherry picked from commit 1249ee57e96b84e84015b433d0a3bfdef0c108bf)
---
 usr.bin/vmstat/vmstat.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 0fee2395071f..3ae34c0219c6 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -1470,6 +1470,7 @@ display_object(struct kinfo_vmobject *kvo)
 	xo_emit("{:resident/%5ju} ", (uintmax_t)kvo->kvo_resident);
 	xo_emit("{:active/%5ju} ", (uintmax_t)kvo->kvo_active);
 	xo_emit("{:inactive/%5ju} ", (uintmax_t)kvo->kvo_inactive);
+	xo_emit("{:laundry/%5ju} ", (uintmax_t)kvo->kvo_laundry);
 	xo_emit("{:refcount/%3d} ", kvo->kvo_ref_count);
 	xo_emit("{:shadowcount/%3d} ", kvo->kvo_shadow_count);
 
@@ -1572,8 +1573,8 @@ doobjstat(void)
 		xo_warn("Failed to fetch VM object list");
 		return;
 	}
-	xo_emit("{T:RES/%5s} {T:ACT/%5s} {T:INACT/%5s} {T:REF/%3s} {T:SHD/%3s} "
-	    "{T:CM/%2s} {T:TP/%3s} {T:PATH/%s}\n");
+	xo_emit("{T:RES/%5s} {T:ACT/%5s} {T:INACT/%5s} {T:LAUND/%5s} "
+	    "{T:REF/%3s} {T:SHD/%3s} {T:CM/%2s} {T:TP/%3s} {T:PATH/%s}\n");
 	xo_open_list("object");
 	for (i = 0; i < cnt; i++)
 		display_object(&kvo[i]);