| * Copyright IBM Corp. 2008,2009 |
| * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>, |
| #include <linux/linkage.h> |
| #include <asm/asm-offsets.h> |
| .section .kprobes.text, "ax" |
| #ifdef CONFIG_DYNAMIC_FTRACE |
| larl %r1,function_trace_stop |
| stg %r1,__SF_BACKCHAIN(%r15) |
| larl %r14,ftrace_trace_function |
| #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
| ENTRY(ftrace_graph_caller) |
| # The bras instruction gets runtime patched to call prepare_ftrace_return. |
| # See ftrace_enable_ftrace_graph_caller. The patched instruction is: |
| # bras %r14,prepare_ftrace_return |
| #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
| stg %r1,__SF_BACKCHAIN(%r15) |
| brasl %r14,ftrace_return_to_handler |