mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 09:43:47 +00:00
Don't waste 1264K for each MB of unused text.
Remove misplaced comment.
This commit is contained in:
parent
15e633f0d9
commit
e45d35c3f8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6009
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue