diff options
author | 2013-07-18 08:42:50 +0000 | |
---|---|---|
committer | 2013-07-18 08:42:50 +0000 | |
commit | 9b02769f34ee5ffdbc3e003df8c1aa9d5db64a85 (patch) | |
tree | 3a768cc34d0096339327a876c59fdfb1e2e6d619 | |
parent | document the :c selectors; from Sunil Nimmagadda (diff) | |
download | wireguard-openbsd-9b02769f34ee5ffdbc3e003df8c1aa9d5db64a85.tar.xz wireguard-openbsd-9b02769f34ee5ffdbc3e003df8c1aa9d5db64a85.zip |
There is no uvm_km_pages_free in our kernel anymore. The corresponding
lines in dopool_sysctl() have been removed from vmstat.c revision
1.116. Remove uvm_km_pages_free from dopool_kvm() to allow analysing
a core dump.
OK guenther@ miod@
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index cffa59112a8..34bd31a071c 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -1,5 +1,5 @@ /* $NetBSD: vmstat.c,v 1.29.4.1 1996/06/05 00:21:05 cgd Exp $ */ -/* $OpenBSD: vmstat.c,v 1.121 2013/05/14 20:39:25 miod Exp $ */ +/* $OpenBSD: vmstat.c,v 1.122 2013/07/18 08:42:50 bluhm Exp $ */ /* * Copyright (c) 1980, 1986, 1991, 1993 @@ -78,8 +78,6 @@ struct nlist namelist[] = { { "_nselcoll" }, #define X_POOLHEAD 7 /* sysctl */ { "_pool_head" }, -#define X_KMPAGESFREE 8 /* sysctl */ - { "_uvm_km_pages_free" }, { "" }, }; @@ -1065,8 +1063,6 @@ dopool_kvm(void) inuse /= 1024; total /= 1024; - kread(X_KMPAGESFREE, &kmfp, sizeof(kmfp)); - total += kmfp * (getpagesize() / 1024); printf("\nIn use %ldK, total allocated %ldK; utilization %.1f%%\n", inuse, total, (double)(100 * inuse) / total); } |