entry-ftrace.S (e4fe196642678565766815d99ab98a3a32d72dd4) entry-ftrace.S (5c176aff5b5a7027840c37da9d48a8f9cedb08b9)
1/*
2 * arch/arm64/kernel/entry-ftrace.S
3 *
4 * Copyright (C) 2013 Linaro Limited
5 * Author: AKASHI Takahiro <takahiro.akashi@linaro.org>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 193 unchanged lines hidden (view full) ---

202
203 mcount_exit
204ENDPROC(ftrace_graph_caller)
205
206/*
207 * void return_to_handler(void)
208 *
209 * Run ftrace_return_to_handler() before going back to parent.
1/*
2 * arch/arm64/kernel/entry-ftrace.S
3 *
4 * Copyright (C) 2013 Linaro Limited
5 * Author: AKASHI Takahiro <takahiro.akashi@linaro.org>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 193 unchanged lines hidden (view full) ---

202
203 mcount_exit
204ENDPROC(ftrace_graph_caller)
205
206/*
207 * void return_to_handler(void)
208 *
209 * Run ftrace_return_to_handler() before going back to parent.
210 * @fp is checked against the value passed by ftrace_graph_caller()
211 * only when HAVE_FUNCTION_GRAPH_FP_TEST is enabled.
210 * @fp is checked against the value passed by ftrace_graph_caller().
212 */
213ENTRY(return_to_handler)
214 save_return_regs
215 mov x0, x29 // parent's fp
216 bl ftrace_return_to_handler// addr = ftrace_return_to_hander(fp);
217 mov x30, x0 // restore the original return address
218 restore_return_regs
219 ret
220END(return_to_handler)
221#endif /* CONFIG_FUNCTION_GRAPH_TRACER */
211 */
212ENTRY(return_to_handler)
213 save_return_regs
214 mov x0, x29 // parent's fp
215 bl ftrace_return_to_handler// addr = ftrace_return_to_hander(fp);
216 mov x30, x0 // restore the original return address
217 restore_return_regs
218 ret
219END(return_to_handler)
220#endif /* CONFIG_FUNCTION_GRAPH_TRACER */