summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/kernel/uprobes.c
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2023-06-29 14:58:44 +0200
committerHuacai Chen <chenhuacai@loongson.cn>2023-06-29 14:58:44 +0200
commit6e320363339b585a36bf40d74592db3db021e017 (patch)
treefb62b5307b7580861fd4fa037dc3fb6961086a57 /arch/loongarch/kernel/uprobes.c
parentLoongArch: Add larch_insn_gen_break() to generate break insns (diff)
downloadlinux-6e320363339b585a36bf40d74592db3db021e017.tar.xz
linux-6e320363339b585a36bf40d74592db3db021e017.zip
LoongArch: Use larch_insn_gen_break() for kprobes
For now, we can use larch_insn_gen_break() to define KPROBE_BP_INSN and KPROBE_SSTEPBP_INSN. Because larch_insn_gen_break() returns instruction word, define kprobe_opcode_t as u32, then do some small changes related with type conversion, no functional change intended. Tested-by: Jeff Xie <xiehuan09@gmail.com> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions