Skip to content
projects
/
linux
·
blob
master ·
refs
linux
arch
csky
lib
error-inject.c
…
History
History
·
Raw
Raw
·
Diff
Diff
·
Blob
Blob
10 lines · 251 B
1
//
SPDX-License-Identifier: GPL-2.0
2
3
#include
<
linux/error-injection.h
>
4
#include
<
linux/kprobes.h
>
5
6
void
override_function_with_return
(
struct
pt_regs
*
regs
)
7
{
8
instruction_pointer_set
(
regs
,
regs
->
lr
)
;
9
}
10
NOKPROBE_SYMBOL
(
override_function_with_return
)
;