git: ba40b2b89962 - main - vmstat -o: report objects backing posix shm segments
Date: Tue, 08 Oct 2024 12:39:29 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=ba40b2b89962b799ade3b92cdd710e36cccc8810
commit ba40b2b89962b799ade3b92cdd710e36cccc8810
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-10-07 02:01:48 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-10-08 12:38:29 +0000
vmstat -o: report objects backing posix shm segments
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D46970
---
usr.bin/vmstat/vmstat.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 8d6c40a4d2fd..862cc4809fbe 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -1546,6 +1546,8 @@ display_object(struct kinfo_vmobject *kvo)
if ((kvo->kvo_flags & KVMO_FLAG_SYSVSHM) != 0)
xo_emit("{:sysvshm/sysvshm(%ju:%u)} ",
(uintmax_t)kvo->kvo_vn_fileid, kvo->kvo_vn_fsid_freebsd11);
+ if ((kvo->kvo_flags & KVMO_FLAG_POSIXSHM) != 0)
+ xo_emit("{:posixshm/posixshm@/posixshm}");
xo_emit("{:path/%-s}\n", kvo->kvo_path);
xo_close_instance("object");
}