* sched.c: why -fno-omit-frame-pointer?
@ 2007-08-19 14:17 Adrian Bunk
2007-08-19 21:05 ` Arjan van de Ven
2007-08-19 23:00 ` Andi Kleen
0 siblings, 2 replies; 4+ messages in thread
From: Adrian Bunk @ 2007-08-19 14:17 UTC (permalink / raw)
To: Ingo Molnar
Cc: linux-kernel, Andreas Schwab, Alan Modra, David Mosberger-Tang
kernel/sched.c gets compiled with -fno-omit-frame-pointer, and this was
already done in kernel 1.0 (sic).
Later, it has been modified to be this way only on some architectures.
It might not be an earthshaking amount, but removing it saves some
bytes, and there's no visible breakage when running the modified kernel
on i386.
$ ls -la kernel/sched.o*
-rw-rw-r-- 1 bunk bunk 25600 2007-08-19 16:10 kernel/sched.o
-rw-rw-r-- 1 bunk bunk 26084 2007-08-19 16:03 kernel/sched.o.old
$ size kernel/sched.o*
text data bss dec hex filename
11835 184 2000 14019 36c3 kernel/sched.o
12321 184 2000 14505 38a9 kernel/sched.o.old
$
Is the -fno-omit-frame-pointer still required for some reason, or is
this a relict that could be removed?
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sched.c: why -fno-omit-frame-pointer?
2007-08-19 14:17 sched.c: why -fno-omit-frame-pointer? Adrian Bunk
@ 2007-08-19 21:05 ` Arjan van de Ven
2007-08-19 23:00 ` Andi Kleen
1 sibling, 0 replies; 4+ messages in thread
From: Arjan van de Ven @ 2007-08-19 21:05 UTC (permalink / raw)
To: Adrian Bunk
Cc: Ingo Molnar, linux-kernel, Andreas Schwab, Alan Modra,
David Mosberger-Tang
On Sun, 2007-08-19 at 16:17 +0200, Adrian Bunk wrote:
> kernel/sched.c gets compiled with -fno-omit-frame-pointer, and this was
> already done in kernel 1.0 (sic).
>
> Later, it has been modified to be this way only on some architectures.
>
> It might not be an earthshaking amount, but removing it saves some
> bytes, and there's no visible breakage when running the modified kernel
> on i386.
>
vague memory: this was needed for wchan to work properly
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sched.c: why -fno-omit-frame-pointer?
2007-08-19 14:17 sched.c: why -fno-omit-frame-pointer? Adrian Bunk
2007-08-19 21:05 ` Arjan van de Ven
@ 2007-08-19 23:00 ` Andi Kleen
2007-08-23 11:30 ` Ingo Molnar
1 sibling, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2007-08-19 23:00 UTC (permalink / raw)
To: Adrian Bunk
Cc: Ingo Molnar, linux-kernel, Andreas Schwab, Alan Modra,
David Mosberger-Tang
Adrian Bunk <bunk@kernel.org> writes:
>
> Is the -fno-omit-frame-pointer still required for some reason, or is
> this a relict that could be removed?
It's needed so that the WCHAN /proc display can backtrace one
level up out of schedule()
-Andi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sched.c: why -fno-omit-frame-pointer?
2007-08-19 23:00 ` Andi Kleen
@ 2007-08-23 11:30 ` Ingo Molnar
0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2007-08-23 11:30 UTC (permalink / raw)
To: Andi Kleen
Cc: Adrian Bunk, linux-kernel, Andreas Schwab, Alan Modra,
David Mosberger-Tang
* Andi Kleen <andi@firstfloor.org> wrote:
> Adrian Bunk <bunk@kernel.org> writes:
> >
> > Is the -fno-omit-frame-pointer still required for some reason, or is
> > this a relict that could be removed?
>
> It's needed so that the WCHAN /proc display can backtrace one level up
> out of schedule()
it's not just one level - we'll back out until we are in scheduler
functions (up to 16 levels). So it will back out of io_schedule() and
other functions as well.
Ingo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-23 11:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-19 14:17 sched.c: why -fno-omit-frame-pointer? Adrian Bunk
2007-08-19 21:05 ` Arjan van de Ven
2007-08-19 23:00 ` Andi Kleen
2007-08-23 11:30 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox