aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/kprobes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/kprobes.h')
-rw-r--r--include/asm-powerpc/kprobes.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/asm-powerpc/kprobes.h b/include/asm-powerpc/kprobes.h
index 0654f79b06df..f466bc804f41 100644
--- a/include/asm-powerpc/kprobes.h
+++ b/include/asm-powerpc/kprobes.h
@@ -30,7 +30,10 @@
30#include <linux/ptrace.h> 30#include <linux/ptrace.h>
31#include <linux/percpu.h> 31#include <linux/percpu.h>
32 32
33#define __ARCH_WANT_KPROBES_INSN_SLOT
34
33struct pt_regs; 35struct pt_regs;
36struct kprobe;
34 37
35typedef unsigned int kprobe_opcode_t; 38typedef unsigned int kprobe_opcode_t;
36#define BREAKPOINT_INSTRUCTION 0x7fe00008 /* trap */ 39#define BREAKPOINT_INSTRUCTION 0x7fe00008 /* trap */
@@ -48,6 +51,7 @@ typedef unsigned int kprobe_opcode_t;
48 51
49#define ARCH_SUPPORTS_KRETPROBES 52#define ARCH_SUPPORTS_KRETPROBES
50void kretprobe_trampoline(void); 53void kretprobe_trampoline(void);
54extern void arch_remove_kprobe(struct kprobe *p);
51 55
52/* Architecture specific copy of original instruction */ 56/* Architecture specific copy of original instruction */
53struct arch_specific_insn { 57struct arch_specific_insn {
@@ -69,15 +73,7 @@ struct kprobe_ctlblk {
69 struct prev_kprobe prev_kprobe; 73 struct prev_kprobe prev_kprobe;
70}; 74};
71 75
72#ifdef CONFIG_KPROBES
73extern int kprobe_exceptions_notify(struct notifier_block *self, 76extern int kprobe_exceptions_notify(struct notifier_block *self,
74 unsigned long val, void *data); 77 unsigned long val, void *data);
75#else /* !CONFIG_KPROBES */
76static inline int kprobe_exceptions_notify(struct notifier_block *self,
77 unsigned long val, void *data)
78{
79 return 0;
80}
81#endif
82#endif /* __KERNEL__ */ 78#endif /* __KERNEL__ */
83#endif /* _ASM_POWERPC_KPROBES_H */ 79#endif /* _ASM_POWERPC_KPROBES_H */