Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2002 10:10:55 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 10697 for review
Message-ID:  <200205021710.g42HAt467714@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10697

Change 10697 by rwatson@rwatson_tislabs on 2002/05/02 10:09:58

	Suggestively add nmacvnodes to count the number of live vnodes
	with labels.

Affected files ...

... //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#137 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#137 (text+ko) ====

@@ -792,7 +792,7 @@
 SYSCTL_NODE(_security_mac, OID_AUTO, debug, CTLFLAG_RW, 0,
     "TrustedBSD MAC debug info");
 static unsigned int nmacmbufs, nmacsubjects, nmacifnets, nmacbpfdescs,
-    nmacsockets, nmacmounts;
+    nmacsockets, nmacmounts, nmacvnodes;
 SYSCTL_UINT(_security_mac_debug, OID_AUTO, mbufs, CTLFLAG_RD,
     &nmacmbufs, 0, "number of mbufs in use");
 SYSCTL_UINT(_security_mac_debug, OID_AUTO, subjects, CTLFLAG_RD,
@@ -805,6 +805,8 @@
     &nmacsockets, 0, "number of sockets in use");
 SYSCTL_UINT(_security_mac_debug, OID_AUTO, mounts, CTLFLAG_RD,
     &nmacmounts, 0, "number of mounts in use");
+SYSCTL_UINT(_security_mac_debug, OID_AUTO, vnodes, CTLFLAG_RD,
+    &nmacvnodes, 0, "number of vnodes in use");
 
 int
 mac_init_mbuf(struct mbuf *m, int how)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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