summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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