The branch main has been updated by markj:

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

commit f66bb825f5895eed98c959cd2b612453b4d1aa6c
Author:     Mark Johnston <[email protected]>
AuthorDate: 2025-10-10 13:28:01 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2025-10-10 13:28:01 +0000

    vmstat: Print the number of wired pages in each object
    
    Reviewed by:    alc, kib
    MFC after:      1 week
    Sponsored by:   Modirum MDPay
    Sponsored by:   Klara, Inc.
    Differential Revision:  https://reviews.freebsd.org/D53008
---
 usr.bin/vmstat/vmstat.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 7a7c83fe1ac8..9b4d3a25ee07 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -1465,6 +1465,7 @@ display_object(struct kinfo_vmobject *kvo)
        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("{:wired/%5ju} ", (uintmax_t)kvo->kvo_wired);
        xo_emit("{:refcount/%3d} ", kvo->kvo_ref_count);
        xo_emit("{:shadowcount/%3d} ", kvo->kvo_shadow_count);
 
@@ -1568,7 +1569,8 @@ doobjstat(void)
                return;
        }
        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");
+           "{T:WIRED/%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]);

Reply via email to