diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2017-06-15 03:50:51 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2017-06-15 03:50:51 +0000 |
commit | 6cf922abb30017ecff82d4b083d826e6b078a10b (patch) | |
tree | 6937c9fcaa7718e0f663dae91e74446ea4c6f449 | |
parent | d1bbcc076ae1515567f979cea6c7f576d4cf26ac (diff) |
report contention on caches global data to userland.
-rw-r--r-- | sys/kern/subr_pool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index 85821dfc644..69bdf3505ab 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.211 2017/06/15 03:48:50 dlg Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.212 2017/06/15 03:50:50 dlg Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -1946,6 +1946,7 @@ pool_cache_info(struct pool *pp, void *oldp, size_t *oldlenp) kpc.pr_ngc = 0; /* notyet */ kpc.pr_len = pp->pr_cache_items; kpc.pr_nlist = pp->pr_cache_nlist; + kpc.pr_contention = pp->pr_cache_contention; mtx_leave(&pp->pr_cache_mtx); return (sysctl_rdstruct(oldp, oldlenp, NULL, &kpc, sizeof(kpc))); |