Module Name:    src
Committed By:   pgoyette
Date:           Mon Jan  2 02:08:05 UTC 2017

Modified Files:
        src/usr.bin/vmstat: vmstat.c

Log Message:
For kvm-based kernhist code, print size of history table and "next free"
pointer, same as we do for sysctl-based code.


To generate a diff of this commit:
cvs rdiff -u -r1.210 -r1.211 src/usr.bin/vmstat/vmstat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/vmstat/vmstat.c
diff -u src/usr.bin/vmstat/vmstat.c:1.210 src/usr.bin/vmstat/vmstat.c:1.211
--- src/usr.bin/vmstat/vmstat.c:1.210	Mon Jan  2 01:48:56 2017
+++ src/usr.bin/vmstat/vmstat.c	Mon Jan  2 02:08:05 2017
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #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 @@ hist_dodump(struct kern_history *histp)
 
 	(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 {

Reply via email to