linux/arch/riscv/kernel/probes
Jisheng Zhang 8c9f4940c2
riscv: kprobes: Remove redundant kprobe_step_ctx
Inspired by commit ba090f9caf ("arm64: kprobes: Remove redundant
kprobe_step_ctx"), the ss_pending and match_addr of kprobe_step_ctx
are redundant because those can be replaced by KPROBE_HIT_SS and
&cur_kprobe->ainsn.api.insn[0] + GET_INSN_LENGTH(cur->opcode)
respectively.

Remove the kprobe_step_ctx to simplify the code.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
2021-05-29 11:17:08 -07:00
..
decode-insn.c RISC-V: probes: Treat the instruction stream as host-endian 2021-02-18 23:18:02 -08:00
decode-insn.h
ftrace.c riscv: kprobes/ftrace: Add recursion protection to the ftrace callback 2021-04-15 21:32:34 -07:00
kprobes_trampoline.S
kprobes.c riscv: kprobes: Remove redundant kprobe_step_ctx 2021-05-29 11:17:08 -07:00
Makefile riscv: Add uprobes supported 2021-01-14 15:09:08 -08:00
simulate-insn.c
simulate-insn.h
uprobes.c riscv: Add uprobes supported 2021-01-14 15:09:08 -08:00