s390/ftrace: optimize function graph caller code
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 15 Aug 2014 10:33:46 +0000 (12:33 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Sep 2014 06:53:28 +0000 (08:53 +0200)
commit2481a87b0250bbf429fc8cdc78331efbc44a0221
tree0bf818ad656c2c12bbe4bc5b7882c99826439b93
parent0f1b1ff54b386926ef1a524e60ef89ae7738bbd5
s390/ftrace: optimize function graph caller code

When the function graph tracer is disabled we can skip three additional
instructions. So let's just do this.

So if function tracing is enabled but function graph tracing is
runtime disabled, we get away with a single unconditional branch.

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