]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0804119509f4a988c8be8d02a22e17e00b3820f
tree8e93043ede994d899a625819cb871684f2cfe1a9
parent244982eea2e967878d916e45b069c8964e0b1490
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