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
This commit is contained in:
Konstantin Belousov 2024-10-07 04:59:53 +03:00
parent b0b18b57a5
commit a1258191d5

View File

@ -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");
}