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

This commit is contained in:
ad 2019-12-11 19:51:36 +00:00
parent 000e67db6f
commit d1120cd8e9
2 changed files with 14 additions and 11 deletions

View File

@ -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 flags:
.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

View File

@ -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, 1991, 1993, 1994\
#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' },
};