linux/arch/riscv/kernel/probes
Heiko Stuebner ec5f908775
RISC-V: Move riscv_insn_is_* macros into a common header
Right now the riscv kernel has (at least) two independent sets
of functions to check if an encoded instruction is of a specific
type. One in kgdb and one kprobes simulate-insn code.

More parts of the kernel will probably need this in the future,
so instead of allowing this duplication to go on further,
move macros that do the function declaration in a common header,
similar to at least aarch64.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Heiko Stuebner <heiko.stuebner@vrull.eu>
Link: https://lore.kernel.org/r/20221223221332.4127602-7-heiko@sntech.de
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2022-12-29 06:59:46 -08:00
..
decode-insn.c riscv: kprobes: implement the branch instructions 2021-07-21 23:22:34 -07:00
decode-insn.h
ftrace.c ftrace: disable preemption when recursion locked 2021-10-27 11:21:49 -04:00
kprobes.c riscv: add riscv rethook implementation 2022-12-02 13:04:05 -08:00
Makefile riscv: add riscv rethook implementation 2022-12-02 13:04:05 -08:00
rethook_trampoline.S riscv: add riscv rethook implementation 2022-12-02 13:04:05 -08:00
rethook.c riscv: add riscv rethook implementation 2022-12-02 13:04:05 -08:00
rethook.h riscv: add riscv rethook implementation 2022-12-02 13:04:05 -08:00
simulate-insn.c riscv: kprobes: implement the branch instructions 2021-07-21 23:22:34 -07:00
simulate-insn.h RISC-V: Move riscv_insn_is_* macros into a common header 2022-12-29 06:59:46 -08:00
uprobes.c riscv:uprobe fix SR_SPIE set/clear handling 2022-08-11 14:14:52 -07:00