aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorChenghao Duan <duanchenghao@kylinos.cn>2025-12-31 15:19:25 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2025-12-31 15:19:25 +0800
commitbb85d206be208bbf834883e948125a35ac59993a (patch)
tree1792fbdda1a6bfcbdc79dc95e853d5d6100bacc3 /kernel
parent73721d8676771c6c7b06d4e636cc053fc76afefd (diff)
samples/ftrace: Adjust LoongArch register restore order in direct calls
Ensure that in the ftrace direct call logic, the CPU register state (with ra = parent return address) is restored to the correct state after the execution of the custom trampoline function and before returning to the traced function. Additionally, guarantee the correctness of the jump logic for jr t0 (traced function address). Cc: stable@vger.kernel.org Fixes: 9cdc3b6a299c ("LoongArch: ftrace: Add direct call support") Reported-by: Youling Tang <tangyouling@kylinos.cn> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Chenghao Duan <duanchenghao@kylinos.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions