diff options
author | bde <bde@FreeBSD.org> | 1995-01-29 03:03:23 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-01-29 03:03:23 +0000 |
commit | 63b01ede83257cab1abcd2018f78dce543ef5790 (patch) | |
tree | f84e9623f47042123e32913974e09a908e170c17 /sys/kern/subr_prof.c | |
parent | be086a9068dae3539e7a5da77d07fd5e67c81b2a (diff) | |
download | FreeBSD-src-63b01ede83257cab1abcd2018f78dce543ef5790.zip FreeBSD-src-63b01ede83257cab1abcd2018f78dce543ef5790.tar.gz |
Don't waste 1264K for each MB of unused text.
Remove misplaced comment.
Diffstat (limited to 'sys/kern/subr_prof.c')
-rw-r--r-- | sys/kern/subr_prof.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index e7e15d2..e0cdb2f 100644 --- a/sys/kern/subr_prof.c +++ b/sys/kern/subr_prof.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)subr_prof.c 8.3 (Berkeley) 9/23/93 - * $Id: subr_prof.c,v 1.3 1994/08/02 07:42:32 davidg Exp $ + * $Id: subr_prof.c,v 1.4 1994/09/21 21:58:39 bde Exp $ */ #include <sys/param.h> @@ -45,11 +45,9 @@ #include <sys/malloc.h> #include <sys/gmon.h> -/* - * Froms is actually a bunch of unsigned shorts indexing tos - */ struct gmonparam _gmonparam = { GMON_PROF_OFF }; +extern char btext[]; extern char etext[]; void @@ -61,7 +59,7 @@ kmstartup() * Round lowpc and highpc to multiples of the density we're using * so the rest of the scaling (here and in gprof) stays in ints. */ - p->lowpc = ROUNDDOWN(KERNBASE, HISTFRACTION * sizeof(HISTCOUNTER)); + p->lowpc = ROUNDDOWN((u_long)btext, HISTFRACTION * sizeof(HISTCOUNTER)); p->highpc = ROUNDUP((u_long)etext, HISTFRACTION * sizeof(HISTCOUNTER)); p->textsize = p->highpc - p->lowpc; printf("Profiling kernel, textsize=%d [%x..%x]\n", |