]> Git Repo - linux.git/blob - arch/s390/lib/error-inject.c
proc/vmcore: convert oldmem_pfn_is_ram callback to more generic vmcore callbacks
[linux.git] / arch / s390 / lib / error-inject.c
1 // SPDX-License-Identifier: GPL-2.0+
2 #include <asm/ptrace.h>
3 #include <linux/error-injection.h>
4 #include <linux/kprobes.h>
5
6 void override_function_with_return(struct pt_regs *regs)
7 {
8         /*
9          * Emulate 'br 14'. 'regs' is captured by kprobes on entry to some
10          * kernel function.
11          */
12         regs->psw.addr = regs->gprs[14];
13 }
14 NOKPROBE_SYMBOL(override_function_with_return);
This page took 0.03506 seconds and 4 git commands to generate.