svn commit: r229710 - stable/9/usr.bin/procstat
Mikolaj Golub
trociny at FreeBSD.org
Fri Jan 6 16:57:57 UTC 2012
Author: trociny
Date: Fri Jan 6 16:57:56 2012
New Revision: 229710
URL: http://svn.freebsd.org/changeset/base/229710
Log:
MFC r227317, r227355:
When displaying process virtual memory mappings print superpage
mapping flag.
Submitted by: Mel Flynn <mel.flynn+fbsd.hackers at mailing.thruhere.net>
Reviewed by: alc, rwatson
Modified:
stable/9/usr.bin/procstat/procstat.1
stable/9/usr.bin/procstat/procstat_vm.c
Directory Properties:
stable/9/usr.bin/procstat/ (props changed)
Modified: stable/9/usr.bin/procstat/procstat.1
==============================================================================
--- stable/9/usr.bin/procstat/procstat.1 Fri Jan 6 16:57:29 2012 (r229709)
+++ stable/9/usr.bin/procstat/procstat.1 Fri Jan 6 16:57:56 2012 (r229710)
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 14, 2011
+.Dd November 7, 2011
.Dt PROCSTAT 1
.Os
.Sh NAME
@@ -421,6 +421,8 @@ The following mapping flags may be displ
copy-on-write
.It N
needs copy
+.It S
+one or more superpage mappings are used
.El
.Sh EXIT STATUS
.Ex -std
Modified: stable/9/usr.bin/procstat/procstat_vm.c
==============================================================================
--- stable/9/usr.bin/procstat/procstat_vm.c Fri Jan 6 16:57:29 2012 (r229709)
+++ stable/9/usr.bin/procstat/procstat_vm.c Fri Jan 6 16:57:56 2012 (r229710)
@@ -50,7 +50,7 @@ procstat_vm(struct kinfo_proc *kipp)
ptrwidth = 2*sizeof(void *) + 2;
if (!hflag)
- printf("%5s %*s %*s %3s %4s %4s %3s %3s %2s %-2s %-s\n",
+ printf("%5s %*s %*s %3s %4s %4s %3s %3s %3s %-2s %-s\n",
"PID", ptrwidth, "START", ptrwidth, "END", "PRT", "RES",
"PRES", "REF", "SHD", "FL", "TP", "PATH");
@@ -70,8 +70,9 @@ procstat_vm(struct kinfo_proc *kipp)
printf("%3d ", kve->kve_ref_count);
printf("%3d ", kve->kve_shadow_count);
printf("%-1s", kve->kve_flags & KVME_FLAG_COW ? "C" : "-");
- printf("%-1s ", kve->kve_flags & KVME_FLAG_NEEDS_COPY ? "N" :
+ printf("%-1s", kve->kve_flags & KVME_FLAG_NEEDS_COPY ? "N" :
"-");
+ printf("%-1s ", kve->kve_flags & KVME_FLAG_SUPER ? "S" : "-");
switch (kve->kve_type) {
case KVME_TYPE_NONE:
str = "--";
More information about the svn-src-stable-9
mailing list