PERFORCE change 14831 for review
Robert Watson
rwatson at freebsd.org
Wed Jul 24 13:55:24 GMT 2002
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14831
Change 14831 by rwatson at rwatson_tislabs on 2002/07/24 06:54:51
For some reason, the plural is more pleasing for statistics
than the singular.
Affected files ...
.. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#192 edit
Differences ...
==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#192 (text+ko) ====
@@ -139,8 +139,12 @@
TUNABLE_INT("security.mac.cache_fslabel_in_vnode",
&mac_cache_fslabel_in_vnode);
-static int mac_vnode_label_cache_hit = 0;
-static int mac_vnode_label_cache_miss = 0;
+static int mac_vnode_label_cache_hits = 0;
+SYSCTL_INT(_security_mac, OID_AUTO, vnode_label_cache_hits, CTLFLAG_RD,
+ &mac_vnode_label_cache_hits, 0, "Cache hits on vnode labels");
+static int mac_vnode_label_cache_misses = 0;
+SYSCTL_INT(_security_mac, OID_AUTO, vnode_label_cache_misses, CTLFLAG_RD,
+ &mac_vnode_label_cache_misses, 0, "Cache misses on vnode labels");
static int error_select(int error1, int error2);
static int mac_externalize(struct label *label, struct mac *mac);
@@ -1228,10 +1232,10 @@
}
if (vp->v_flag & VCACHEDLABEL) {
- mac_vnode_label_cache_hit++;
+ mac_vnode_label_cache_hits++;
return (0);
} else
- mac_vnode_label_cache_miss++;
+ mac_vnode_label_cache_misses++;
if ((vp->v_mount->mnt_flag & MNT_MULTILABEL) == 0) {
mac_update_vnode_from_mount(vp, vp->v_mount);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list