+2
−0
Loading
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9FGRE -------------------------------- Add ftrace direct support for arm64. 1. When there is custom trampoline only, patch fentry callsite to call the custom trampoline directly. 2. When ftrace caller and custom trampoline coexist, jump from fentry to ftrace caller first, then jump to custom trampoline when ftrace caller exits. As pt_regs->orig_x0 is currently unused by ftrace, its space is reused as an intermediary for jumping from ftrace caller to custom trampoline. In short, this patch does the same thing as the x86 commit 562955fe ("ftrace/x86: Add register_ftrace_direct() for custom trampolines"). Signed-off-by:Xu Kuohai <xukuohai@huawei.com> Signed-off-by:
Pu Lehui <pulehui@huawei.com>