![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 0003 #include <linux/error-injection.h> 0004 #include <linux/kprobes.h> 0005 0006 void override_function_with_return(struct pt_regs *regs) 0007 { 0008 /* 0009 * 'regs' represents the state on entry of a predefined function in 0010 * the kernel/module and which is captured on a kprobe. 0011 * 0012 * When kprobe returns back from exception it will override the end 0013 * of probed function and directly return to the predefined 0014 * function's caller. 0015 */ 0016 instruction_pointer_set(regs, procedure_link_pointer(regs)); 0017 } 0018 NOKPROBE_SYMBOL(override_function_with_return);
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |