Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/vmstat Don't forget to fetch pool cache group.



details:   https://anonhg.NetBSD.org/src/rev/b16d49898ddb
branches:  trunk
changeset: 522491:b16d49898ddb
user:      enami <enami%NetBSD.org@localhost>
date:      Wed Feb 20 07:52:43 2002 +0000

description:
Don't forget to fetch pool cache group.

diffstat:

 usr.bin/vmstat/vmstat.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 6da20e4ba25c -r b16d49898ddb usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c   Wed Feb 20 07:43:30 2002 +0000
+++ b/usr.bin/vmstat/vmstat.c   Wed Feb 20 07:52:43 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.96 2002/02/20 07:43:30 enami Exp $ */
+/* $NetBSD: vmstat.c,v 1.97 2002/02/20 07:52:43 enami Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -81,7 +81,7 @@
 #if 0
 static char sccsid[] = "@(#)vmstat.c   8.2 (Berkeley) 3/1/95";
 #else
-__RCSID("$NetBSD: vmstat.c,v 1.96 2002/02/20 07:43:30 enami Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.97 2002/02/20 07:52:43 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -1184,6 +1184,8 @@
                        continue;
                for (pcg_addr = TAILQ_FIRST(&pc->pc_grouplist);
                    pcg_addr != NULL; pcg_addr = TAILQ_NEXT(pcg, pcg_list)) {
+                       deref_kptr(pcg_addr, pcg, sizeof(*pcg),
+                           "pool cache group trashed");
                        printf("\t\tgroup %p: avail %d\n", pcg_addr,
                            pcg->pcg_avail);
                        for (i = 0; i < PCG_NOBJECTS; i++)



Home | Main Index | Thread Index | Old Index