LoongArch: Add kprobes support
authorTiezhu Yang <yangtiezhu@loongson.cn>
Sat, 25 Feb 2023 07:52:57 +0000 (15:52 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 25 Feb 2023 14:12:17 +0000 (22:12 +0800)
commit6d4cc40fb5f58147defc6c0e9d86e6232fe31616
tree71f244b9bce629eb133a0cb8d90c08f2cdd9e98f
parent9b3441a6b0e1ed4796e7f5a8586c4d6023c4e3ab
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>
arch/loongarch/Kconfig
arch/loongarch/include/asm/inst.h
arch/loongarch/include/asm/kprobes.h [new file with mode: 0644]
arch/loongarch/kernel/Makefile
arch/loongarch/kernel/kprobes.c [new file with mode: 0644]
arch/loongarch/kernel/traps.c
arch/loongarch/mm/fault.c