aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/loongarch/kernel/Makefile
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2023-02-25 15:52:57 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2023-02-25 22:12:17 +0800
commit6d4cc40fb5f58147defc6c0e9d86e6232fe31616 (patch)
tree71f244b9bce629eb133a0cb8d90c08f2cdd9e98f /arch/loongarch/kernel/Makefile
parentLoongArch: Simulate branch and PC* instructions (diff)
downloadwireguard-linux-6d4cc40fb5f58147defc6c0e9d86e6232fe31616.tar.xz
wireguard-linux-6d4cc40fb5f58147defc6c0e9d86e6232fe31616.zip
LoongArch: Add kprobes support
Kprobes allows you to trap at almost any kernel address and execute a callback function, this commit adds kprobes support for LoongArch. Tested-by: Jeff Xie <xiehuan09@gmail.com> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/kernel/Makefile')
-rw-r--r--arch/loongarch/kernel/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/loongarch/kernel/Makefile b/arch/loongarch/kernel/Makefile
index bbb6b047f5db..0a2f546216c0 100644
--- a/arch/loongarch/kernel/Makefile
+++ b/arch/loongarch/kernel/Makefile
@@ -52,4 +52,6 @@ obj-$(CONFIG_UNWINDER_PROLOGUE) += unwind_prologue.o
obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_regs.o
obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
+obj-$(CONFIG_KPROBES) += kprobes.o
+
CPPFLAGS_vmlinux.lds := $(KBUILD_CFLAGS)