diff options
-rw-r--r-- | arch/s390/Kconfig | 1 | ||||
-rw-r--r-- | arch/s390/kernel/mcount.S | 10 | ||||
-rw-r--r-- | arch/s390/kernel/mcount64.S | 3 |
3 files changed, 3 insertions, 11 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index bb63499fc5d3..f5af5f6ef0f4 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
@@ -116,7 +116,6 @@ config S390 | |||
116 | select HAVE_FTRACE_MCOUNT_RECORD | 116 | select HAVE_FTRACE_MCOUNT_RECORD |
117 | select HAVE_FUNCTION_GRAPH_TRACER | 117 | select HAVE_FUNCTION_GRAPH_TRACER |
118 | select HAVE_FUNCTION_TRACER | 118 | select HAVE_FUNCTION_TRACER |
119 | select HAVE_FUNCTION_TRACE_MCOUNT_TEST | ||
120 | select HAVE_FUTEX_CMPXCHG if FUTEX | 119 | select HAVE_FUTEX_CMPXCHG if FUTEX |
121 | select HAVE_KERNEL_BZIP2 | 120 | select HAVE_KERNEL_BZIP2 |
122 | select HAVE_KERNEL_GZIP | 121 | select HAVE_KERNEL_GZIP |
diff --git a/arch/s390/kernel/mcount.S b/arch/s390/kernel/mcount.S index 08dcf21cb8df..433c6dbfa442 100644 --- a/arch/s390/kernel/mcount.S +++ b/arch/s390/kernel/mcount.S | |||
@@ -21,13 +21,9 @@ ENTRY(_mcount) | |||
21 | ENTRY(ftrace_caller) | 21 | ENTRY(ftrace_caller) |
22 | #endif | 22 | #endif |
23 | stm %r2,%r5,16(%r15) | 23 | stm %r2,%r5,16(%r15) |
24 | bras %r1,2f | 24 | bras %r1,1f |
25 | 0: .long ftrace_trace_function | 25 | 0: .long ftrace_trace_function |
26 | 1: .long function_trace_stop | 26 | 1: st %r14,56(%r15) |
27 | 2: l %r2,1b-0b(%r1) | ||
28 | icm %r2,0xf,0(%r2) | ||
29 | jnz 3f | ||
30 | st %r14,56(%r15) | ||
31 | lr %r0,%r15 | 27 | lr %r0,%r15 |
32 | ahi %r15,-96 | 28 | ahi %r15,-96 |
33 | l %r3,100(%r15) | 29 | l %r3,100(%r15) |
@@ -50,7 +46,7 @@ ENTRY(ftrace_graph_caller) | |||
50 | #endif | 46 | #endif |
51 | ahi %r15,96 | 47 | ahi %r15,96 |
52 | l %r14,56(%r15) | 48 | l %r14,56(%r15) |
53 | 3: lm %r2,%r5,16(%r15) | 49 | lm %r2,%r5,16(%r15) |
54 | br %r14 | 50 | br %r14 |
55 | 51 | ||
56 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 52 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
diff --git a/arch/s390/kernel/mcount64.S b/arch/s390/kernel/mcount64.S index 1c52eae3396a..c67a8bf0fd9a 100644 --- a/arch/s390/kernel/mcount64.S +++ b/arch/s390/kernel/mcount64.S | |||
@@ -20,9 +20,6 @@ ENTRY(_mcount) | |||
20 | 20 | ||
21 | ENTRY(ftrace_caller) | 21 | ENTRY(ftrace_caller) |
22 | #endif | 22 | #endif |
23 | larl %r1,function_trace_stop | ||
24 | icm %r1,0xf,0(%r1) | ||
25 | bnzr %r14 | ||
26 | stmg %r2,%r5,32(%r15) | 23 | stmg %r2,%r5,32(%r15) |
27 | stg %r14,112(%r15) | 24 | stg %r14,112(%r15) |
28 | lgr %r1,%r15 | 25 | lgr %r1,%r15 |