riscv: kprobes: implement the branch instructions
authorChen Lifu <chenlifu@huawei.com>
Tue, 29 Jun 2021 02:34:55 +0000 (10:34 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 22 Jul 2021 06:22:34 +0000 (23:22 -0700)
commit67979e927dd053bde3b71128495f651256b3161c
tree6b6afb4475566cc21328cd3842c32228386cc2ff
parentb7d2be48cc08a9d42e347d944efa9f37ab9b83d2
riscv: kprobes: implement the branch instructions

This has been tested by probing a module that contains each of the
flavors of branches we have.

Signed-off-by: Chen Lifu <chenlifu@huawei.com>
[Palmer: commit message, fix kconfig errors]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/probes/decode-insn.c
arch/riscv/kernel/probes/simulate-insn.c