diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2022-03-26 03:27:17 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-03-29 04:38:51 +0200 |
commit | f3a112c0c40dd96d53c8bdf3ea8d94d528f3b7b8 (patch) | |
tree | 8251161678a5c938a53d97b1476d6662a95b488f /arch/x86/Kconfig | |
parent | kprobes: Use rethook for kretprobe if possible (diff) | |
download | linux-f3a112c0c40dd96d53c8bdf3ea8d94d528f3b7b8.tar.xz linux-f3a112c0c40dd96d53c8bdf3ea8d94d528f3b7b8.zip |
x86,rethook,kprobes: Replace kretprobe with rethook on x86
Replaces the kretprobe code with rethook on x86. With this patch,
kretprobe on x86 uses the rethook instead of kretprobe specific
trampoline code.
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Tested-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/164826163692.2455864.13745421016848209527.stgit@devnote2
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r-- | arch/x86/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 7340d9f01b62..ff45a27fc29c 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -224,6 +224,7 @@ config X86 select HAVE_KPROBES_ON_FTRACE select HAVE_FUNCTION_ERROR_INJECTION select HAVE_KRETPROBES + select HAVE_RETHOOK select HAVE_KVM select HAVE_LIVEPATCH if X86_64 select HAVE_MIXED_BREAKPOINTS_REGS |