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-arm.c | |
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-arm.c')
-rw-r--r-- | arch/arm/kernel/kprobes-arm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kernel/kprobes-arm.c b/arch/arm/kernel/kprobes-arm.c index 79203ee1d039..9fe8910308af 100644 --- a/arch/arm/kernel/kprobes-arm.c +++ b/arch/arm/kernel/kprobes-arm.c | |||
@@ -60,6 +60,7 @@ | |||
60 | 60 | ||
61 | #include <linux/kernel.h> | 61 | #include <linux/kernel.h> |
62 | #include <linux/kprobes.h> | 62 | #include <linux/kprobes.h> |
63 | #include <linux/module.h> | ||
63 | 64 | ||
64 | #include "kprobes.h" | 65 | #include "kprobes.h" |
65 | 66 | ||
@@ -971,6 +972,9 @@ const union decode_item kprobe_decode_arm_table[] = { | |||
971 | 972 | ||
972 | DECODE_END | 973 | DECODE_END |
973 | }; | 974 | }; |
975 | #ifdef CONFIG_ARM_KPROBES_TEST_MODULE | ||
976 | EXPORT_SYMBOL_GPL(kprobe_decode_arm_table); | ||
977 | #endif | ||
974 | 978 | ||
975 | static void __kprobes arm_singlestep(struct kprobe *p, struct pt_regs *regs) | 979 | static void __kprobes arm_singlestep(struct kprobe *p, struct pt_regs *regs) |
976 | { | 980 | { |