summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/kprobes
diff options
context:
space:
mode:
authorMasami Hiramatsu2015-01-05 12:29:32 +0100
committerJon Medhurst2015-01-13 17:10:16 +0100
commitcbf6ab52add20b845f903decc973afbd5463c527 (patch)
treeea3dd11ef2a4f68aaf531038127aeee55c38db75 /arch/x86/kernel/kprobes
parentARM: kprobes: Add test cases for stack consuming instructions (diff)
downloadkernel-qcow2-linux-cbf6ab52add20b845f903decc973afbd5463c527.tar.gz
kernel-qcow2-linux-cbf6ab52add20b845f903decc973afbd5463c527.tar.xz
kernel-qcow2-linux-cbf6ab52add20b845f903decc973afbd5463c527.zip
kprobes: Pass the original kprobe for preparing optimized kprobe
Pass the original kprobe for preparing an optimized kprobe arch-dep part, since for some architecture (e.g. ARM32) requires the information in original kprobe. Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Signed-off-by: Wang Nan <wangnan0@huawei.com> Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'arch/x86/kernel/kprobes')
-rw-r--r--arch/x86/kernel/kprobes/opt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/kprobes/opt.c b/arch/x86/kernel/kprobes/opt.c
index 7c523bbf3dc8..0dd8d089c315 100644
--- a/arch/x86/kernel/kprobes/opt.c
+++ b/arch/x86/kernel/kprobes/opt.c
@@ -322,7 +322,8 @@ void arch_remove_optimized_kprobe(struct optimized_kprobe *op)
* Target instructions MUST be relocatable (checked inside)
* This is called when new aggr(opt)probe is allocated or reused.
*/
-int arch_prepare_optimized_kprobe(struct optimized_kprobe *op)
+int arch_prepare_optimized_kprobe(struct optimized_kprobe *op,
+ struct kprobe *__unused)
{
u8 *buf;
int ret;