[RFC PATCH 0/3] Add uprobes support for LoongArch

From: Tiezhu Yang
Date: Thu Apr 06 2023 - 22:15:10 EST


RFC patches sent for review, more testing is working in progress.

Tiezhu Yang (3):
LoongArch: Move three functions from kprobes.c to inst.h
LoongArch: Add larch_insn_gen_break() to generate break insn
LoongArch: Add uprobes support

arch/loongarch/Kconfig | 3 +
arch/loongarch/include/asm/inst.h | 63 ++++++++++++++++
arch/loongarch/include/asm/kprobes.h | 2 +-
arch/loongarch/include/asm/uprobes.h | 36 +++++++++
arch/loongarch/kernel/Makefile | 1 +
arch/loongarch/kernel/inst.c | 9 +++
arch/loongarch/kernel/kprobes.c | 63 ++--------------
arch/loongarch/kernel/traps.c | 7 +-
arch/loongarch/kernel/uprobes.c | 138 +++++++++++++++++++++++++++++++++++
9 files changed, 259 insertions(+), 63 deletions(-)
create mode 100644 arch/loongarch/include/asm/uprobes.h
create mode 100644 arch/loongarch/kernel/uprobes.c

--
2.1.0