From ee784f0af4636c106f29303731d9654eae653657 Mon Sep 17 00:00:00 2001 From: dlg Date: Thu, 15 Jun 2017 03:50:50 +0000 Subject: [PATCH] report contention on caches global data to userland. --- sys/kern/subr_pool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))); -- 2.20.1