riscv: kprobes: Clean up instruction simulation
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 · linked by author and title
- v2 Latest11 patches 2 repliesApplied 11/11
- v111 patches 4 repliesSuperseded
Changes in v2 from the cover letter
rebase on top of Alex's patches [1]. This means replacing RV_X with RV_X_mask for the first 2 patches. The rest is the same.
Patches in v2 All 11 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | riscv: kprobes: Move branch_rs2_idx to insn.harch/ arch/ | +6 | 0 replies | Applied |
| 2/11 | riscv: kprobes: Move branch_funct3 to insn.harch/ arch/ | +5 | 0 replies | Applied |
| 3/11 | riscv: kprobes: Remove duplication of RV_EXTRACT_JTYPE_IMMarch/ | +3 | 0 replies | Applied |
| 4/11 | riscv: kprobes: Remove duplication of RV_EXTRACT_RS1_REGarch/ | +2 | 0 replies | Applied |
| 5/11 | riscv: kprobes: Remove duplication of RV_EXTRACT_BTYPE_IMMarch/ | +1 | 0 replies | Applied |
| 6/11 | riscv: kproves: Remove duplication of RVC_EXTRACT_JTYPE_IMMarch/ | +2 | 0 replies | Applied |
| 7/11 | riscv: kprobes: Remove duplication of RVC_EXTRACT_C2_RS1_REGarch/ | +1 | 0 replies | Applied |
| 8/11 | riscv: kprobes: Remove duplication of RVC_EXTRACT_BTYPE_IMMarch/ | +3 | 0 replies | Applied |
| 9/11 | riscv: kprobes: Remove duplication of RV_EXTRACT_RD_REGarch/ | +3 | 0 replies | Applied |
| 10/11 | riscv: kprobes: Remove duplication of RV_EXTRACT_UTYPE_IMMarch/ | +1 | 0 replies | Applied |
| 11/11 | riscv: kprobes: Remove duplication of RV_EXTRACT_ITYPE_IMMarch/ | +1 | 0 replies | Applied |
Reviews trailers per patch
All 11 patches have a Reviewed-by or Acked-by.
| Patch | Alexandre Ghiti |
|---|---|
| 1/11 | R-b |
| 2/11 | R-b |
| 3/11 | R-b |
| 4/11 | R-b |
| 5/11 | R-b |
| 6/11 | R-b |
| 7/11 | R-b |
| 8/11 | R-b |
| 9/11 | R-b |
| 10/11 | R-b |
| 11/11 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/11] riscv: kprobes: Clean up instruction simulation
Hi,
There is some instruction-processing code in kprobes simulate code. These code should be insn.h. In fact, most of them is duplicating insn.h.
This series remove the duplicated bits and make use of macros already defined in insn.h. The non-duplicated bits are moved into insn.h.
v2:
rebase on top of Alex's patches [1]. This means replacing RV_X with RV_X_mask for the first 2 patches. The rest is the same.
[1] https://lore.kernel.org/linux-riscv/[email protected]/
Nam Cao (11):
riscv: kprobes: Move branch_rs2_idx to insn.h
riscv: kprobes: Move branch_funct3 to insn.h
riscv: kprobes: Remove duplication of RV_EXTRACT_JTYPE_IMM
riscv: kprobes: Remove duplication of RV_EXTRACT_RS1_REG
riscv: kprobes: Remove duplication of RV_EXTRACT_BTYPE_IMM
riscv: kproves: Remove duplication of RVC_EXTRACT_JTYPE_IMM
riscv: kprobes: Remove duplication of RVC_EXTRACT_C2_RS1_REG
riscv: kprobes: Remove duplication of RVC_EXTRACT_BTYPE_IMM
riscv: kprobes: Remove duplication of RV_EXTRACT_RD_REG
riscv: kprobes: Remove duplication of RV_EXTRACT_UTYPE_IMM
riscv: kprobes: Remove duplication of RV_EXTRACT_ITYPE_IMM
arch/riscv/include/asm/insn.h | 9 +++ arch/riscv/kernel/probes/simulate-insn.c | 94 +++++------------------- 2 files changed, 28 insertions(+), 75 deletions(-)
Signature · 1 line
2.39.5