[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1663645034-967-1-git-send-email-yangtiezhu@loongson.cn>
Date: Tue, 20 Sep 2022 11:37:10 +0800
From: Tiezhu Yang <yangtiezhu@...ngson.cn>
To: Huacai Chen <chenhuacai@...nel.org>,
Masami Hiramatsu <mhiramat@...nel.org>
Cc: loongarch@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: [PATCH 0/4] Add kprobe and kretprobe support for LoongArch
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
Powered by blists - more mailing lists