On 09/20/2022 11:37 AM, Tiezhu Yang wrote:
Use the generic kretprobe trampoline handler to add kretprobe
support for LoongArch.
Signed-off-by: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>
---
arch/loongarch/Kconfig | 1 +
arch/loongarch/kernel/kprobes.c | 49
int __init arch_init_kprobes(void)Hi, Tiezhu,
{
- return 0;
+ return register_kprobe(&trampoline_p);
For kretprobe, we can do things like arm64/riscv... did. It avoid
the break exception when function return.