Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vmstat For kvm-based kernhist code, print size of hi...
details: https://anonhg.NetBSD.org/src/rev/ee499d25d688
branches: trunk
changeset: 820156:ee499d25d688
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Jan 02 02:08:05 2017 +0000
description:
For kvm-based kernhist code, print size of history table and "next free"
pointer, same as we do for sysctl-based code.
diffstat:
usr.bin/vmstat/vmstat.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r c1498e188080 -r ee499d25d688 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c Mon Jan 02 01:48:56 2017 +0000
+++ b/usr.bin/vmstat/vmstat.c Mon Jan 02 02:08:05 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.210 2017/01/02 01:48:56 pgoyette Exp $ */
+/* $NetBSD: vmstat.c,v 1.211 2017/01/02 02:08:05 pgoyette Exp $ */
/*-
* Copyright (c) 1998, 2000, 2001, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 3/1/95";
#else
-__RCSID("$NetBSD: vmstat.c,v 1.210 2017/01/02 01:48:56 pgoyette Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.211 2017/01/02 02:08:05 pgoyette Exp $");
#endif
#endif /* not lint */
@@ -2081,6 +2081,9 @@
(void)memset(histents, 0, histsize);
+ (void)printf("%"PRIu32" entries, next is %"PRIu32"\n",
+ histp->n, histp->f);
+
deref_kptr(histp->e, histents, histsize, "history entries");
i = histp->f;
do {
Home |
Main Index |
Thread Index |
Old Index