[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1690704360.git.namcaov@gmail.com>
Date: Sun, 30 Jul 2023 10:27:06 +0200
From: Nam Cao <namcaov@...il.com>
To: Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc: Nam Cao <namcaov@...il.com>
Subject: [PATCH 0/3] riscv: kprobes: simulate some instructions
Simulate some currently rejected instructions. Still to be simulated are:
- c.jal
- c.ebreak
Nam Cao (3):
riscv: kprobes: simulate c.j instruction
riscv: kprobes: simulate c.jr and c.jalr instructions
riscv: kprobes: simulate c.beqz and c.bnez
arch/riscv/kernel/probes/decode-insn.c | 11 +-
arch/riscv/kernel/probes/simulate-insn.c | 105 +++++++++
arch/riscv/kernel/probes/simulate-insn.h | 5 +
drivers/test_kprobe/Makefile | 3 +
drivers/test_kprobe/test_kprobe.c | 265 +++++++++++++++++++++++
5 files changed, 384 insertions(+), 5 deletions(-)
create mode 100644 drivers/test_kprobe/Makefile
create mode 100644 drivers/test_kprobe/test_kprobe.c
--
2.34.1
Powered by blists - more mailing lists