+16
−0
+23
−0
Loading
mainline inclusion from mainline-v5.16-rc1 commit 03bac0df category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9R2TB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=03bac0df2886882c43e6d0bfff9dee84a184fc7e ------------------------------------------------------ Introduce kretprobe_find_ret_addr() and is_kretprobe_trampoline(). These APIs will be used by the ORC stack unwinder and ftrace, so that they can check whether the given address points kretprobe trampoline code and query the correct return address in that case. Signed-off-by:Masami Hiramatsu <mhiramat@kernel.org> Tested-by:
Andrii Nakryiko <andrii@kernel.org> Signed-off-by:
Steven Rostedt (VMware) <rostedt@goodmis.org> Conflicts: include/linux/kprobes.h kernel/kprobes.c [Reimplement kretprobe_find_ret_addr() and is_kretprobe_trampoline() without the dependcy commit d741bf41 ("kprobes: Remove kretprobe hash") and other refactors since those are too many changes] Signed-off-by:
Zheng Yejian <zhengyejian1@huawei.com>