]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: kprobes: Decode 16-bit Thumb hint instructions
authorJon Medhurst <tixy@yxit.co.uk>
Sat, 2 Jul 2011 14:36:32 +0000 (15:36 +0100)
committerTixy <tixy@medhuaa1.miniserver.com>
Wed, 13 Jul 2011 17:32:43 +0000 (17:32 +0000)
commit3f92dfed6a9a5f490128c8e7cc6a64dfe412994f
tree1d503b19d01075dfd1db1023b8d0e787f9d58bb6
parent0d1a095aa1e6e2a233bfb1729e15233e77f69d54
ARM: kprobes: Decode 16-bit Thumb hint instructions

For hints which may have observable effects, like SEV (send event), we
use kprobe_emulate_none which emulates the hint by executing the
original instruction.

For NOP we simulate the instruction using kprobe_simulate_nop, which
does nothing. As probes execute with interrupts disabled this is also
used for hints which may block for an indefinite time, like WFE (wait
for event).

Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/kernel/kprobes-common.c
arch/arm/kernel/kprobes-thumb.c
arch/arm/kernel/kprobes.h