Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vmstat add stats for nchash & ncvhash
details: https://anonhg.NetBSD.org/src/rev/5c459a6b2d04
branches: trunk
changeset: 518209:5c459a6b2d04
user: lukem <lukem%NetBSD.org@localhost>
date: Mon Nov 26 10:38:59 2001 +0000
description:
add stats for nchash & ncvhash
diffstat:
usr.bin/vmstat/vmstat.c | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diffs (49 lines):
diff -r b222ec7d6f48 -r 5c459a6b2d04 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c Mon Nov 26 10:18:08 2001 +0000
+++ b/usr.bin/vmstat/vmstat.c Mon Nov 26 10:38:59 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.88 2001/11/26 10:18:08 lukem Exp $ */
+/* $NetBSD: vmstat.c,v 1.89 2001/11/26 10:38:59 lukem 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.88 2001/11/26 10:18:08 lukem Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.89 2001/11/26 10:38:59 lukem Exp $");
#endif
#endif /* not lint */
@@ -193,8 +193,16 @@
{ "_in_ifaddrhash" },
#define X_IFADDRHASHTBL 26
{ "_in_ifaddrhashtbl" },
+#define X_NCHASH 27
+ { "_nchash" },
+#define X_NCHASHTBL 28
+ { "_nchashtbl" },
+#define X_NCVHASH 29
+ { "_ncvhash" },
+#define X_NCVHASHTBL 30
+ { "_ncvhashtbl" },
-#define X_END 27
+#define X_END 31
#if defined(pc532)
#define X_IVT (X_END)
{ "_ivt" },
@@ -1161,6 +1169,12 @@
X_IFADDRHASH, X_IFADDRHASHTBL,
HASH_LIST, offsetof(struct in_ifaddr, ia_hash),
} , {
+ X_NCHASH, X_NCHASHTBL,
+ HASH_LIST, offsetof(struct namecache, nc_hash),
+ } , {
+ X_NCVHASH, X_NCVHASHTBL,
+ HASH_LIST, offsetof(struct namecache, nc_vhash),
+ } , {
-1, -1, 0, 0
}
};
Home |
Main Index |
Thread Index |
Old Index