Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern fix: "vmstat -C" CpuLayer showed only the last cpu ...



details:   https://anonhg.NetBSD.org/src/rev/b584cb34ab23
branches:  trunk
changeset: 343452:b584cb34ab23
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Fri Feb 05 03:04:52 2016 +0000

description:
fix: "vmstat -C" CpuLayer showed only the last cpu values.

diffstat:

 sys/kern/subr_pool.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 0c33209f0173 -r b584cb34ab23 sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c      Thu Feb 04 21:26:48 2016 +0000
+++ b/sys/kern/subr_pool.c      Fri Feb 05 03:04:52 2016 +0000
@@ -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 @@
                                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;



Home | Main Index | Thread Index | Old Index