OSDN Git Service

s390/ftrace: simplify enabling/disabling of ftrace_graph_caller
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 8 Oct 2014 08:03:08 +0000 (10:03 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 9 Oct 2014 07:14:20 +0000 (09:14 +0200)
commit0cccdda8d1512af4d3f6913044e8c8e58e15ef37
tree8e93043ede994d899a625819cb871684f2cfe1a9
parent53255c9a4dade6ff2162121430d13aaadb38a69c
s390/ftrace: simplify enabling/disabling of ftrace_graph_caller

We can simply patch the mask field within the branch relative on
condition instruction at the beginning of the ftrace_graph_caller
code block.
This makes the logic even simpler and we get rid of the displacement
calculation.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/ftrace.c
arch/s390/kernel/mcount.S