aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/procstat
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-02-14 00:37:24 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-02-14 01:24:58 +0000
commit25c6318c7906f6f4e0c66ce16f81bdb830ba2e3b (patch)
tree2e661b37eb7d1b45f319716456de1863c5b957c2 /usr.bin/procstat
parentbffc3fb3c09b36fd8740242f184d1e8bd8530920 (diff)
downloadsrc-25c6318c7906f6f4e0c66ce16f81bdb830ba2e3b.tar.gz
src-25c6318c7906f6f4e0c66ce16f81bdb830ba2e3b.zip
procstat: distinguish vm map guards in procstat vm output.
Requested and reviewed by: rwatson (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28658
Diffstat (limited to 'usr.bin/procstat')
-rw-r--r--usr.bin/procstat/procstat.14
-rw-r--r--usr.bin/procstat/procstat_vm.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/procstat/procstat.1 b/usr.bin/procstat/procstat.1
index 1ce0b796beb4..affe69ffb615 100644
--- a/usr.bin/procstat/procstat.1
+++ b/usr.bin/procstat/procstat.1
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 24, 2020
+.Dd February 13, 2021
.Dt PROCSTAT 1
.Os
.Sh NAME
@@ -674,6 +674,8 @@ scatter/gather
swap
.It vn
vnode
+.It gd
+guard (pseudo-type)
.El
.Pp
The following mapping flags may be displayed:
diff --git a/usr.bin/procstat/procstat_vm.c b/usr.bin/procstat/procstat_vm.c
index 13a4e1cf03af..7d698fefdc30 100644
--- a/usr.bin/procstat/procstat_vm.c
+++ b/usr.bin/procstat/procstat_vm.c
@@ -155,6 +155,10 @@ procstat_vm(struct procstat *procstat, struct kinfo_proc *kipp)
str = "md";
lstr = "managed_device";
break;
+ case KVME_TYPE_GUARD:
+ str = "gd";
+ lstr = "guard";
+ break;
case KVME_TYPE_UNKNOWN:
default:
str = "??";