diff options
Diffstat (limited to 'arch/powerpc/kernel/kprobes.c')
-rw-r--r-- | arch/powerpc/kernel/kprobes.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c index aed58e1cb91f..088b8c6defa0 100644 --- a/arch/powerpc/kernel/kprobes.c +++ b/arch/powerpc/kernel/kprobes.c | |||
@@ -550,3 +550,11 @@ int __init arch_init_kprobes(void) | |||
550 | { | 550 | { |
551 | return register_kprobe(&trampoline_p); | 551 | return register_kprobe(&trampoline_p); |
552 | } | 552 | } |
553 | |||
554 | int __kprobes arch_trampoline_kprobe(struct kprobe *p) | ||
555 | { | ||
556 | if (p->addr == (kprobe_opcode_t *)&kretprobe_trampoline) | ||
557 | return 1; | ||
558 | |||
559 | return 0; | ||
560 | } | ||