mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
b57c2f1240
Implement the kretprobes on riscv arch by using rethook machenism which abstracts general kretprobe info into a struct rethook_node to be embedded in the struct kretprobe_instance. Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Binglei Wang <l3b2w1@gmail.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20221025151831.1097417-1-conor@kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
9 lines
263 B
C
9 lines
263 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef __RISCV_RETHOOK_H
|
|
#define __RISCV_RETHOOK_H
|
|
|
|
unsigned long arch_rethook_trampoline_callback(struct pt_regs *regs);
|
|
void arch_rethook_prepare(struct rethook_node *rhn, struct pt_regs *regs, bool mcount);
|
|
|
|
#endif
|