]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/suse-2.6.27.39/patches.arch/s390-17-perf-01-framepointer.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / s390-17-perf-01-framepointer.patch
1 From: Gerald Schaefer <geraldsc@de.ibm.com>
2 Subject: [S390] omit frame pointers on s390 when possible
3 References: bnc#532063,LTC#55526
4
5 commit 75ee034addc9ac3f6a38a9e6b30e9b54be15d4e5
6 Author: Heiko Carstens <heiko.carstens@de.ibm.com>
7 Date: Thu Apr 23 13:58:10 2009 +0200
8
9 [S390] omit frame pointers on s390 when possible
10
11 Always omit frame pointers on s390. They aren't too useful for the
12 kernel since we have already the kernel stack backchain which allows
13 us to walk the kernel stack.
14 So eleminate the extra code for frame pointers. Only allow the extra
15 code for the function tracer since the gcc compile options -pg and
16 -fomit-frame-pointer are incompatible.
17
18 Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
19 Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
20
21 Acked-by: John Jolly <jjolly@suse.de>
22
23 ---
24 lib/Kconfig.debug | 8 ++++----
25 1 file changed, 4 insertions(+), 4 deletions(-)
26
27 Index: linux-sles11/lib/Kconfig.debug
28 ===================================================================
29 --- linux-sles11.orig/lib/Kconfig.debug
30 +++ linux-sles11/lib/Kconfig.debug
31 @@ -394,7 +394,7 @@ config LOCKDEP
32 bool
33 depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
34 select STACKTRACE
35 - select FRAME_POINTER if !MIPS && !PPC
36 + select FRAME_POINTER if !MIPS && !PPC && !S390
37 select KALLSYMS
38 select KALLSYMS_ALL
39
40 @@ -539,7 +539,7 @@ config DEBUG_SG
41 config FRAME_POINTER
42 bool "Compile the kernel with frame pointers"
43 depends on DEBUG_KERNEL && \
44 - (X86 || CRIS || M68K || M68KNOMMU || FRV || UML || S390 || \
45 + (X86 || CRIS || M68K || M68KNOMMU || FRV || UML || \
46 AVR32 || SUPERH || BLACKFIN || MN10300)
47 default y if DEBUG_INFO && UML
48 help
49 @@ -694,14 +694,14 @@ config FAULT_INJECTION_STACKTRACE_FILTER
50 depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT
51 depends on !X86_64
52 select STACKTRACE
53 - select FRAME_POINTER if !PPC && !X86
54 + select FRAME_POINTER if !PPC && !X86 && !S390
55 select UNWIND_INFO if X86 && !FRAME_POINTER
56 help
57 Provide stacktrace filter for fault-injection capabilities
58
59 config LATENCYTOP
60 bool "Latency measuring infrastructure"
61 - select FRAME_POINTER if !MIPS && !PPC && !X86
62 + select FRAME_POINTER if !MIPS && !PPC && !X86 && !S390
63 select UNWIND_INFO if X86 && !FRAME_POINTER
64 select KALLSYMS
65 select KALLSYMS_ALL