Skip to content

riscv: kprobes: simulate some instructions

Nam Cao linux-riscv lkml 1 version Applied

Status from this message: This series was applied to riscv/linux.git (for-next)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3riscv: kprobes: simulate c.j instructionarch/riscv/kernel/probes/decode-insn.c arch/riscv/kernel/probes/simulate-insn.c arch/riscv/kernel/probes/simulate-insn.h+27 -12 repliesApplied
2/3riscv: kprobes: simulate c.jr and c.jalr instructionsarch/riscv/kernel/probes/decode-insn.c arch/riscv/kernel/probes/simulate-insn.c arch/riscv/kernel/probes/simulate-insn.h+41 -21 replyApplied
3/3riscv: kprobes: simulate c.beqz and c.bnezarch/riscv/kernel/probes/decode-insn.c arch/riscv/kernel/probes/simulate-insn.c arch/riscv/kernel/probes/simulate-insn.h+48 -21 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchCharlie Jenkins
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [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
Signature · 1 line
2.34.1