diff options
author | Jon Medhurst <tixy@yxit.co.uk> | 2011-08-27 07:37:44 -0400 |
---|---|---|
committer | Jon Medhurst <tixy@yxit.co.uk> | 2011-09-20 14:17:43 -0400 |
commit | 2c89240b630e94c1a5949860b7bfcf28130bd9c8 (patch) | |
tree | 3a1ebde30df22d74fd31a2bcbf0ae40b0aaecfe9 /arch/arm/kernel/kprobes.h | |
parent | c0cc6df16394da020242a54d577848f9edd9dc50 (diff) |
ARM: kprobes: Add exports for test code
The test code will be using kprobes' internal decoding tables so we
need to export these for when then the tests are compiled as a module.
Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Diffstat (limited to 'arch/arm/kernel/kprobes.h')
-rw-r--r-- | arch/arm/kernel/kprobes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/kernel/kprobes.h b/arch/arm/kernel/kprobes.h index a6aeda0a6c7f..38945f78f9f1 100644 --- a/arch/arm/kernel/kprobes.h +++ b/arch/arm/kernel/kprobes.h | |||
@@ -413,6 +413,14 @@ struct decode_reject { | |||
413 | DECODE_HEADER(DECODE_TYPE_REJECT, _mask, _value, 0) | 413 | DECODE_HEADER(DECODE_TYPE_REJECT, _mask, _value, 0) |
414 | 414 | ||
415 | 415 | ||
416 | #ifdef CONFIG_THUMB2_KERNEL | ||
417 | extern const union decode_item kprobe_decode_thumb16_table[]; | ||
418 | extern const union decode_item kprobe_decode_thumb32_table[]; | ||
419 | #else | ||
420 | extern const union decode_item kprobe_decode_arm_table[]; | ||
421 | #endif | ||
422 | |||
423 | |||
416 | int kprobe_decode_insn(kprobe_opcode_t insn, struct arch_specific_insn *asi, | 424 | int kprobe_decode_insn(kprobe_opcode_t insn, struct arch_specific_insn *asi, |
417 | const union decode_item *table, bool thumb16); | 425 | const union decode_item *table, bool thumb16); |
418 | 426 | ||