parisc: Avoid using hardware single-step in kprobes
authorHelge Deller <deller@gmx.de>
Tue, 9 Nov 2021 21:25:02 +0000 (22:25 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 18 Mar 2022 08:10:14 +0000 (09:10 +0100)
commit9b046d0245cec982c72a65d3ea1b834959a9708b
treed361a9686a4bc99ccc0122014c0800353e357d14
parent46162ac2a6a425674b0e20a3e0668b21187f94bf
parisc: Avoid using hardware single-step in kprobes

This patch changes the kprobe and kretprobe feature to use another
break instruction instead of relying on the hardware single-step
feature.
That way those kprobes now work in qemu as well, because in qemu we
don't emulate yet single-stepping.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/kprobes.h
arch/parisc/kernel/kprobes.c
arch/parisc/kernel/traps.c