summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-06-23 19:25:57 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-06-23 19:25:57 +0000
commit39fc16eca62c925dda6e015e704a5ef24a7887d4 (patch)
tree3286642b317c1be46a8de51212d454e80030099a /usr.bin
parentfadb16ff004011a6e743156b08ebea17b32e3156 (diff)
kill old tahoe code
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/vmstat/vmstat.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 5249d8c1728..b134c6861a0 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.29 1999/06/23 18:48:12 art Exp $ */
+/* $OpenBSD: vmstat.c,v 1.30 1999/06/23 19:25:56 art Exp $ */
/*
* Copyright (c) 1980, 1986, 1991, 1993
@@ -127,14 +127,6 @@ struct nlist namelist[] = {
#else
#define X_END 14
#endif
-#ifdef tahoe
-#define X_VBDINIT (X_END)
- { "_vbdinit" },
-#define X_CKEYSTATS (X_END+1)
- { "_ckeystats" },
-#define X_DKEYSTATS (X_END+2)
- { "_dkeystats" },
-#endif
#if defined(__pc532__)
#define X_IVT (X_END)
{ "_ivt" },
@@ -545,18 +537,11 @@ pct(top, bot)
#define PCT(top, bot) pct((long)(top), (long)(bot))
-#if defined(tahoe)
-#include <machine/cpu.h>
-#endif
-
void
dosum()
{
struct nchstats nchstats;
long nchtotal;
-#if defined(tahoe)
- struct keystats keystats;
-#endif
#ifdef UVM
/*
@@ -640,22 +625,6 @@ dosum()
PCT(nchstats.ncs_badhits, nchtotal),
PCT(nchstats.ncs_falsehits, nchtotal),
PCT(nchstats.ncs_long, nchtotal));
-#if defined(tahoe)
- kread(X_CKEYSTATS, &keystats, sizeof(keystats));
- (void)printf("%9d %s (free %d%% norefs %d%% taken %d%% shared %d%%)\n",
- keystats.ks_allocs, "code cache keys allocated",
- PCT(keystats.ks_allocfree, keystats.ks_allocs),
- PCT(keystats.ks_norefs, keystats.ks_allocs),
- PCT(keystats.ks_taken, keystats.ks_allocs),
- PCT(keystats.ks_shared, keystats.ks_allocs));
- kread(X_DKEYSTATS, &keystats, sizeof(keystats));
- (void)printf("%9d %s (free %d%% norefs %d%% taken %d%% shared %d%%)\n",
- keystats.ks_allocs, "data cache keys allocated",
- PCT(keystats.ks_allocfree, keystats.ks_allocs),
- PCT(keystats.ks_norefs, keystats.ks_allocs),
- PCT(keystats.ks_taken, keystats.ks_allocs),
- PCT(keystats.ks_shared, keystats.ks_allocs));
-#endif
}
void