PERFORCE change 152230 for review
Peter Wemm
peter at FreeBSD.org
Thu Oct 30 11:11:17 PDT 2008
http://perforce.freebsd.org/chv.cgi?CH=152230
Change 152230 by peter at peter_overcee on 2008/10/30 18:10:23
add ino and dev fields, for now.
Affected files ...
.. //depot/projects/hammer/usr.bin/procstat/procstat_vm.c#4 edit
Differences ...
==== //depot/projects/hammer/usr.bin/procstat/procstat_vm.c#4 (text+ko) ====
@@ -49,9 +49,9 @@
ptrwidth = 2*sizeof(void *) + 2;
offwidth = 2*sizeof(off_t) + 2;
if (!hflag)
- printf("%5s %*s %*s %3s %4s %4s %3s %3s %2s %-2s %*s %-s\n",
+ printf("%5s %*s %*s %3s %4s %4s %3s %3s %2s %-2s %*s %8s %8s %-s\n",
"PID", ptrwidth, "START", ptrwidth, "END", "PRT", "RES",
- "PRES", "REF", "SHD", "FL", "TP", offwidth, "OFFSET", "PATH");
+ "PRES", "REF", "SHD", "FL", "TP", offwidth, "OFFSET", "DEV", "FILEID", "PATH");
name[0] = CTL_KERN;
name[1] = KERN_PROC;
@@ -127,6 +127,8 @@
}
printf("%-2s ", str);
printf("%#*llx ", offwidth, (unsigned long long)kve->kve_offset);
+ printf("%#8lx ", (unsigned long)kve->kve_rdev);
+ printf("%8lld ", (unsigned long long)kve->kve_fileid);
printf("%-s\n", kve->kve_path);
}
free(freep);
More information about the p4-projects
mailing list