summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-06-08 10:37:30 +0000
committertjr <tjr@FreeBSD.org>2004-06-08 10:37:30 +0000
commit58dbd6e6691ff1a548fffcf3bcac15cb2c4bceb4 (patch)
treecf881cdcf87faeed709a7189ea21211e592e3a3b /sys
parent511a311f03f1518d541088db8f207507970bff9c (diff)
downloadFreeBSD-src-58dbd6e6691ff1a548fffcf3bcac15cb2c4bceb4.zip
FreeBSD-src-58dbd6e6691ff1a548fffcf3bcac15cb2c4bceb4.tar.gz
Remove remnants of PGINPROF.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_exit.c5
-rw-r--r--sys/sys/vmmeter.h38
2 files changed, 0 insertions, 43 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 4a9517b..f046154 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -184,11 +184,6 @@ exit1(struct thread *td, int rv)
mtx_unlock(&ppeers_lock);
}
-#ifdef PGINPROF
- mtx_lock(&Giant);
- vmsizmon();
- mtx_unlock(&Giant);
-#endif
PROC_LOCK(p);
_STOPEVENT(p, S_EXIT, rv);
wakeup(&p->p_stype); /* Wakeup anyone in procfs' PIOCWAIT */
diff --git a/sys/sys/vmmeter.h b/sys/sys/vmmeter.h
index fc29665..793f32d 100644
--- a/sys/sys/vmmeter.h
+++ b/sys/sys/vmmeter.h
@@ -207,42 +207,4 @@ struct vmtotal {
int32_t t_free; /* free memory pages */
};
-/*
- * Optional instrumentation.
- */
-#ifdef PGINPROF
-
-#define NDMON 128
-#define NSMON 128
-
-#define DRES 20
-#define SRES 5
-
-#define PMONMIN 20
-#define PRES 50
-#define NPMON 64
-
-#define RMONMIN 130
-#define RRES 5
-#define NRMON 64
-
-/* data and stack size distribution counters */
-u_int dmon[NDMON+1];
-u_int smon[NSMON+1];
-
-/* page in time distribution counters */
-u_int pmon[NPMON+2];
-
-/* reclaim time distribution counters */
-u_int rmon[NRMON+2];
-
-int pmonmin;
-int pres;
-int rmonmin;
-int rres;
-
-u_int rectime; /* accumulator for reclaim times */
-u_int pgintime; /* accumulator for page in times */
-#endif
-
#endif
OpenPOWER on IntegriCloud