Commit 75ee034addc9ac3f6a38a9e6b30e9b54be15d4e5

Authored by Heiko Carstens
Committed by Martin Schwidefsky
1 parent 4d7a3cdfb4

[S390] omit frame pointers on s390 when possible

Always omit frame pointers on s390. They aren't too useful for the
kernel since we have already the kernel stack backchain which allows
us to walk the kernel stack.
So eleminate the extra code for frame pointers. Only allow the extra
code for the function tracer since the gcc compile options -pg and
-fomit-frame-pointer are incompatible.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff

... ... @@ -440,7 +440,7 @@
440 440 bool
441 441 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
442 442 select STACKTRACE
443   - select FRAME_POINTER if !X86 && !MIPS && !PPC && !ARM_UNWIND
  443 + select FRAME_POINTER if !X86 && !MIPS && !PPC && !ARM_UNWIND && !S390
444 444 select KALLSYMS
445 445 select KALLSYMS_ALL
446 446  
... ... @@ -620,7 +620,7 @@
620 620 config FRAME_POINTER
621 621 bool "Compile the kernel with frame pointers"
622 622 depends on DEBUG_KERNEL && \
623   - (CRIS || M68K || M68KNOMMU || FRV || UML || S390 || \
  623 + (CRIS || M68K || M68KNOMMU || FRV || UML || \
624 624 AVR32 || SUPERH || BLACKFIN || MN10300) || \
625 625 ARCH_WANT_FRAME_POINTERS
626 626 default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS
627 627  
... ... @@ -809,13 +809,13 @@
809 809 depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT
810 810 depends on !X86_64
811 811 select STACKTRACE
812   - select FRAME_POINTER if !PPC
  812 + select FRAME_POINTER if !PPC && !S390
813 813 help
814 814 Provide stacktrace filter for fault-injection capabilities
815 815  
816 816 config LATENCYTOP
817 817 bool "Latency measuring infrastructure"
818   - select FRAME_POINTER if !MIPS && !PPC
  818 + select FRAME_POINTER if !MIPS && !PPC && !S390
819 819 select KALLSYMS
820 820 select KALLSYMS_ALL
821 821 select STACKTRACE