Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jan 2012 16:57:56 +0000 (UTC)
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229710 - stable/9/usr.bin/procstat
Message-ID:  <201201061657.q06GvuX7098603@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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 = "--";



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201061657.q06GvuX7098603>