Module Name: src Committed By: knakahara Date: Fri Feb 5 03:04:53 UTC 2016
Modified Files: src/sys/kern: subr_pool.c Log Message: fix: "vmstat -C" CpuLayer showed only the last cpu values. To generate a diff of this commit: cvs rdiff -u -r1.205 -r1.206 src/sys/kern/subr_pool.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/subr_pool.c diff -u src/sys/kern/subr_pool.c:1.205 src/sys/kern/subr_pool.c:1.206 --- src/sys/kern/subr_pool.c:1.205 Mon Aug 24 22:50:32 2015 +++ src/sys/kern/subr_pool.c Fri Feb 5 03:04:52 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_pool.c,v 1.205 2015/08/24 22:50:32 pooka Exp $ */ +/* $NetBSD: subr_pool.c,v 1.206 2016/02/05 03:04:52 knakahara Exp $ */ /*- * Copyright (c) 1997, 1999, 2000, 2002, 2007, 2008, 2010, 2014, 2015 @@ -33,7 +33,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.205 2015/08/24 22:50:32 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.206 2016/02/05 03:04:52 knakahara Exp $"); #ifdef _KERNEL_OPT #include "opt_ddb.h" @@ -2949,8 +2949,8 @@ pool_sysctl(SYSCTLFN_ARGS) cc = pc->pc_cpus[i]; if (cc == NULL) continue; - data.pr_cache_nmiss_pcpu = cc->cc_misses; - data.pr_cache_nhit_pcpu = cc->cc_hits; + data.pr_cache_nmiss_pcpu += cc->cc_misses; + data.pr_cache_nhit_pcpu += cc->cc_hits; } } else { data.pr_cache_meta_size = 0;