fix: "vmstat -C" CpuLayer showed only the last cpu values.
This commit is contained in:
parent
f4a5ac8842
commit
3bf8089a9a
|
@ -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
|
* Copyright (c) 1997, 1999, 2000, 2002, 2007, 2008, 2010, 2014, 2015
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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
|
#ifdef _KERNEL_OPT
|
||||||
#include "opt_ddb.h"
|
#include "opt_ddb.h"
|
||||||
|
@ -2949,8 +2949,8 @@ pool_sysctl(SYSCTLFN_ARGS)
|
||||||
cc = pc->pc_cpus[i];
|
cc = pc->pc_cpus[i];
|
||||||
if (cc == NULL)
|
if (cc == NULL)
|
||||||
continue;
|
continue;
|
||||||
data.pr_cache_nmiss_pcpu = cc->cc_misses;
|
data.pr_cache_nmiss_pcpu += cc->cc_misses;
|
||||||
data.pr_cache_nhit_pcpu = cc->cc_hits;
|
data.pr_cache_nhit_pcpu += cc->cc_hits;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
data.pr_cache_meta_size = 0;
|
data.pr_cache_meta_size = 0;
|
||||||
|
|
Loading…
Reference in New Issue