Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2008 18:11:15 GMT
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 152230 for review
Message-ID:  <200810301811.m9UIBFpt084157@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152230

Change 152230 by peter@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);



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