ARM: kprobes: Decode 32-bit Thumb hint instructions
authorJon Medhurst <tixy@yxit.co.uk>
Sun, 3 Jul 2011 12:55:47 +0000 (13:55 +0100)
committerTixy <tixy@medhuaa1.miniserver.com>
Wed, 13 Jul 2011 17:32:45 +0000 (17:32 +0000)
commitf39ca8b488a6c1e8db47746e1cdb841a6999edd7
treeb04e1f1010e46a15d03e3ac93c685566c5eccbc1
parent0a188ccb5eceb58101fcc11b3ec2d860ccbf92a3
ARM: kprobes: Decode 32-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-thumb.c