Module Name:    src
Committed By:   ad
Date:           Wed Dec 11 19:51:36 UTC 2019

Modified Files:
        src/usr.sbin/pstat: pstat.8 pstat.c

Log Message:
Report on whether vnodes are MPSAFE.  For diagnosing perf problems.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/usr.sbin/pstat/pstat.8
cvs rdiff -u -r1.129 -r1.130 src/usr.sbin/pstat/pstat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/pstat/pstat.8
diff -u src/usr.sbin/pstat/pstat.8:1.42 src/usr.sbin/pstat/pstat.8:1.43
--- src/usr.sbin/pstat/pstat.8:1.42	Mon Jul  3 21:35:31 2017
+++ src/usr.sbin/pstat/pstat.8	Wed Dec 11 19:51:36 2019
@@ -1,4 +1,4 @@
-.\"	$NetBSD: pstat.8,v 1.42 2017/07/03 21:35:31 wiz Exp $
+.\"	$NetBSD: pstat.8,v 1.43 2019/12/11 19:51:36 ad Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993, 1994
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     from: @(#)pstat.8	8.5 (Berkeley) 5/13/94
 .\"
-.Dd March 24, 2014
+.Dd December 11, 2019
 .Dt PSTAT 8
 .Os
 .Sh NAME
@@ -261,19 +261,21 @@ A list of letters representing vnode fla
 .Pp
 .Bl -tag -width indent -compact
 .It R
-VROOT root of its file system.
+VV_ROOT root of its file system.
 .It T
-VTEXT pure text prototype.
+VI_TEXT pure text prototype.
 .It S
-VSYSTEM vnode being used by kernel.
+VV_SYSTEM vnode being used by kernel.
 .It I
-VISTTY vnode is a tty.
+VV_ISTTY vnode is a tty.
 .It E
-VEXECMAP vnode has PROT_EXEC mappings.
+VI_EXECMAP vnode has PROT_EXEC mappings.
 .It D
-VDIROP lfs vnode involved in directory op.
+VU_DIROP lfs vnode involved in directory op.
 .It O
-VONWORKLST vnode is on syncer work-list.
+VI_ONWORKLST vnode is on syncer work-list.
+.It M
+VV_MPSAFE file system is multithreaded
 .El
 .Pp
 .It USE

Index: src/usr.sbin/pstat/pstat.c
diff -u src/usr.sbin/pstat/pstat.c:1.129 src/usr.sbin/pstat/pstat.c:1.130
--- src/usr.sbin/pstat/pstat.c:1.129	Sun Dec  1 14:04:52 2019
+++ src/usr.sbin/pstat/pstat.c	Wed Dec 11 19:51:36 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: pstat.c,v 1.129 2019/12/01 14:04:52 ad Exp $	*/
+/*	$NetBSD: pstat.c,v 1.130 2019/12/11 19:51:36 ad Exp $	*/
 
 /*-
  * Copyright (c) 1980, 1991, 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #if 0
 static char sccsid[] = "@(#)pstat.c	8.16 (Berkeley) 5/9/95";
 #else
-__RCSID("$NetBSD: pstat.c,v 1.129 2019/12/01 14:04:52 ad Exp $");
+__RCSID("$NetBSD: pstat.c,v 1.130 2019/12/11 19:51:36 ad Exp $");
 #endif
 #endif /* not lint */
 
@@ -390,6 +390,7 @@ const struct flagbit_desc vnode_flags[] 
 	{ VI_EXECMAP,	'E' },
 	{ VU_DIROP,	'D' },
 	{ VI_ONWORKLST,	'O' },
+	{ VV_MPSAFE,    'M' },
 	{ 0,		'\0' },
 };
 

Reply via email to