diff options
| author | 2017-06-15 03:50:50 +0000 | |
|---|---|---|
| committer | 2017-06-15 03:50:50 +0000 | |
| commit | ee784f0af4636c106f29303731d9654eae653657 (patch) | |
| tree | c4c017dae87e7e437fc6957edd5edbe9576b4b7d /sys/kern/subr_pool.c | |
| parent | white space tweaks. no functional change. (diff) | |
| download | wireguard-openbsd-ee784f0af4636c106f29303731d9654eae653657.tar.xz wireguard-openbsd-ee784f0af4636c106f29303731d9654eae653657.zip | |
report contention on caches global data to userland.
Diffstat (limited to 'sys/kern/subr_pool.c')
| -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))); |
