Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pstat Report on whether vnodes are MPSAFE. For dia...



details:   https://anonhg.NetBSD.org/src/rev/23754e3a6c7d
branches:  trunk
changeset: 847130:23754e3a6c7d
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Dec 11 19:51:36 2019 +0000

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

diffstat:

 usr.sbin/pstat/pstat.8 |  20 +++++++++++---------
 usr.sbin/pstat/pstat.c |   5 +++--
 2 files changed, 14 insertions(+), 11 deletions(-)

diffs (73 lines):

diff -r bb50e9222d49 -r 23754e3a6c7d usr.sbin/pstat/pstat.8
--- a/usr.sbin/pstat/pstat.8    Wed Dec 11 19:25:50 2019 +0000
+++ b/usr.sbin/pstat/pstat.8    Wed Dec 11 19:51:36 2019 +0000
@@ -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 @@
 .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
diff -r bb50e9222d49 -r 23754e3a6c7d usr.sbin/pstat/pstat.c
--- a/usr.sbin/pstat/pstat.c    Wed Dec 11 19:25:50 2019 +0000
+++ b/usr.sbin/pstat/pstat.c    Wed Dec 11 19:51:36 2019 +0000
@@ -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 @@
 #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 @@
        { VI_EXECMAP,   'E' },
        { VU_DIROP,     'D' },
        { VI_ONWORKLST, 'O' },
+       { VV_MPSAFE,    'M' },
        { 0,            '\0' },
 };
 



Home | Main Index | Thread Index | Old Index