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
This commit is contained in:
Mikolaj Golub 2011-11-07 21:16:19 +00:00
parent 5384d08913
commit 82841ae6f8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227317
2 changed files with 5 additions and 2 deletions

View File

@ -421,6 +421,8 @@ The following mapping flags may be displayed:
copy-on-write
.It N
needs copy
.It S
one or more superpage mappings are used
.El
.Sh EXIT STATUS
.Ex -std

View File

@ -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 = "--";