diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2023-02-25 10:52:57 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-02-25 17:12:17 +0300 |
commit | 3f5536860086d906b01ec5ed68cf50c7edcc40af (patch) | |
tree | 542900b59d0c7f793bb979e0b728dfbbccba0bb2 /arch/loongarch/include | |
parent | 6d4cc40fb5f58147defc6c0e9d86e6232fe31616 (diff) | |
download | linux-3f5536860086d906b01ec5ed68cf50c7edcc40af.tar.xz |
LoongArch: Add kretprobes support
Use the generic kretprobe trampoline handler to add kretprobes support
for LoongArch.
Tested-by: Jeff Xie <xiehuan09@gmail.com>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/include')
-rw-r--r-- | arch/loongarch/include/asm/kprobes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/loongarch/include/asm/kprobes.h b/arch/loongarch/include/asm/kprobes.h index 7b9fc3ed71c3..798020ae02c6 100644 --- a/arch/loongarch/include/asm/kprobes.h +++ b/arch/loongarch/include/asm/kprobes.h @@ -49,6 +49,9 @@ bool kprobe_fault_handler(struct pt_regs *regs, int trapnr); bool kprobe_breakpoint_handler(struct pt_regs *regs); bool kprobe_singlestep_handler(struct pt_regs *regs); +void __kretprobe_trampoline(void); +void *trampoline_probe_handler(struct pt_regs *regs); + #else /* !CONFIG_KPROBES */ static inline bool kprobe_breakpoint_handler(struct pt_regs *regs) { return false; } |