[PATCH 0/4] Add kprobe and kretprobe support for LoongArch

From: Tiezhu Yang
Date: Mon Sep 19 2022 - 23:37:46 EST


Tiezhu Yang (4):
LoongArch: Add kprobe support
LoongArch: Add kretprobe support
samples/kprobes: Add LoongArch support
LoongArch: Enable KPROBES in default config

arch/loongarch/Kconfig | 2 +
arch/loongarch/configs/loongson3_defconfig | 1 +
arch/loongarch/include/asm/inst.h | 31 +++
arch/loongarch/include/asm/kprobes.h | 44 ++++
arch/loongarch/include/asm/ptrace.h | 1 +
arch/loongarch/kernel/Makefile | 2 +
arch/loongarch/kernel/inst.c | 107 +++++++++
arch/loongarch/kernel/kprobes.c | 356 +++++++++++++++++++++++++++++
samples/kprobes/kprobe_example.c | 8 +
9 files changed, 552 insertions(+)
create mode 100644 arch/loongarch/include/asm/kprobes.h
create mode 100644 arch/loongarch/kernel/kprobes.c

--
2.1.0