All of lore.kernel.org
 help / color / mirror / Atom feed
* no-omit-frame-pointer for sched.c in 2.4-i386
@ 2003-06-03 21:06 J.A. Magallon
  2003-06-03 21:21 ` Russell King
  0 siblings, 1 reply; 3+ messages in thread
From: J.A. Magallon @ 2003-06-03 21:06 UTC (permalink / raw)
  To: Lista Linux-Kernel; +Cc: davidm

Hi all...

Any body knows if this still applies:

kernel/Makefile

ifneq ($(CONFIG_IA64),y)
# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
# needed for x86 only.  Why this used to be enabled for all architectures is beyond
# me.  I suspect most platforms don't need this, but until we know that for sure
# I turn this off for IA-64 only.  Andreas Schwab says it's also needed on m68k
# to get a correct value for the wait-channel (WCHAN in ps). --davidm
CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
endif


-- 
J.A. Magallon <jamagallon@able.es>      \                 Software is like sex:
werewolf.able.es                         \           It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.21-rc6-jam1 (gcc 3.2.3 (Mandrake Linux 9.2 3.2.3-1mdk))

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: no-omit-frame-pointer for sched.c in 2.4-i386
  2003-06-03 21:06 no-omit-frame-pointer for sched.c in 2.4-i386 J.A. Magallon
@ 2003-06-03 21:21 ` Russell King
  2003-06-03 21:28   ` David Mosberger
  0 siblings, 1 reply; 3+ messages in thread
From: Russell King @ 2003-06-03 21:21 UTC (permalink / raw)
  To: J.A. Magallon; +Cc: Lista Linux-Kernel, davidm

On Tue, Jun 03, 2003 at 11:06:17PM +0200, J.A. Magallon wrote:
> Hi all...
> 
> Any body knows if this still applies:
> 
> kernel/Makefile
> 
> ifneq ($(CONFIG_IA64),y)
> # According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
> # needed for x86 only.  Why this used to be enabled for all architectures is beyond
> # me.  I suspect most platforms don't need this, but until we know that for sure
> # I turn this off for IA-64 only.  Andreas Schwab says it's also needed on m68k
> # to get a correct value for the wait-channel (WCHAN in ps). --davidm
> CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
> endif

This comment is not accurate.  It's also needed for ARM so that it can
use the framepointer to walk up the frame pointer list to discovered where
we called schedule from (excluding such stuff as the semaphore
implementation.)

Actually, come to think of it, I suspect its buggy today anyway; GCC 3
has some interesting "features" in that -fno-omit-frame-pointer does
not mean it will not omit it.  Certainly on ARM, we need extra options
to ensure that GCC outputs the frame in a parseable manner.

So yes, something _like_ this is needed.  Maybe the right solution would
be to do something like:

	CFLAGS_sched.o	:= $(EXTRA_CALLTRACE_FLAGS)

and architectures can define EXTRA_CALLTRACE_FLAGS appropriately.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: no-omit-frame-pointer for sched.c in 2.4-i386
  2003-06-03 21:21 ` Russell King
@ 2003-06-03 21:28   ` David Mosberger
  0 siblings, 0 replies; 3+ messages in thread
From: David Mosberger @ 2003-06-03 21:28 UTC (permalink / raw)
  To: Russell King; +Cc: J.A. Magallon, Lista Linux-Kernel, davidm

>>>>> On Tue, 3 Jun 2003 22:21:52 +0100, Russell King <rmk@arm.linux.org.uk> said:

  Russell> Maybe the right solution would be to do something like:

  Russell> CFLAGS_sched.o	:= $(EXTRA_CALLTRACE_FLAGS)

  Russell> and architectures can define EXTRA_CALLTRACE_FLAGS appropriately.

That would work for me.

	--david

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-03 21:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-03 21:06 no-omit-frame-pointer for sched.c in 2.4-i386 J.A. Magallon
2003-06-03 21:21 ` Russell King
2003-06-03 21:28   ` David Mosberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.