git: a1258191d5e2 - main - procstat vm: report posix shm segment mapping
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Oct 2024 12:39:27 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a1258191d5e21736e25010c85eb01b5f995cc1d2 commit a1258191d5e21736e25010c85eb01b5f995cc1d2 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-10-07 01:59:53 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-10-08 12:38:23 +0000 procstat vm: report posix shm segment mapping Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D46970 --- usr.bin/procstat/procstat_vm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/procstat/procstat_vm.c b/usr.bin/procstat/procstat_vm.c index e899b365a9d1..78c1e70971d7 100644 --- a/usr.bin/procstat/procstat_vm.c +++ b/usr.bin/procstat/procstat_vm.c @@ -170,6 +170,8 @@ procstat_vm(struct procstat *procstat, struct kinfo_proc *kipp) xo_emit(" {:sysvipc:/sysvshm(%ju:%u)/%ju:%u}", (uintmax_t)kve->kve_vn_fileid, kve->kve_vn_fsid_freebsd11); + if ((kve->kve_flags & KVME_FLAG_POSIXSHM) != 0) + xo_emit(" {:posixshm:/posixshm@/posixshm}"); xo_emit("{:kve_path/%-s/%s}\n", kve->kve_path); xo_close_instance("vm"); }