diff options
Diffstat (limited to 'include/linux/kprobes.h')
| -rw-r--r-- | include/linux/kprobes.h | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index e373c4a9de53..c03f2dc933de 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h  | |||
| @@ -37,6 +37,7 @@ | |||
| 37 | #include <linux/spinlock.h> | 37 | #include <linux/spinlock.h> | 
| 38 | #include <linux/rcupdate.h> | 38 | #include <linux/rcupdate.h> | 
| 39 | 39 | ||
| 40 | #ifdef CONFIG_KPROBES | ||
| 40 | #include <asm/kprobes.h> | 41 | #include <asm/kprobes.h> | 
| 41 | 42 | ||
| 42 | /* kprobe_status settings */ | 43 | /* kprobe_status settings */ | 
| @@ -147,7 +148,6 @@ struct kretprobe_instance { | |||
| 147 | struct task_struct *task; | 148 | struct task_struct *task; | 
| 148 | }; | 149 | }; | 
| 149 | 150 | ||
| 150 | #ifdef CONFIG_KPROBES | ||
| 151 | extern spinlock_t kretprobe_lock; | 151 | extern spinlock_t kretprobe_lock; | 
| 152 | extern int arch_prepare_kprobe(struct kprobe *p); | 152 | extern int arch_prepare_kprobe(struct kprobe *p); | 
| 153 | extern void arch_copy_kprobe(struct kprobe *p); | 153 | extern void arch_copy_kprobe(struct kprobe *p); | 
| @@ -158,6 +158,7 @@ extern int arch_init_kprobes(void); | |||
| 158 | extern void show_registers(struct pt_regs *regs); | 158 | extern void show_registers(struct pt_regs *regs); | 
| 159 | extern kprobe_opcode_t *get_insn_slot(void); | 159 | extern kprobe_opcode_t *get_insn_slot(void); | 
| 160 | extern void free_insn_slot(kprobe_opcode_t *slot); | 160 | extern void free_insn_slot(kprobe_opcode_t *slot); | 
| 161 | extern void kprobes_inc_nmissed_count(struct kprobe *p); | ||
| 161 | 162 | ||
| 162 | /* Get the kprobe at this addr (if any) - called with preemption disabled */ | 163 | /* Get the kprobe at this addr (if any) - called with preemption disabled */ | 
| 163 | struct kprobe *get_kprobe(void *addr); | 164 | struct kprobe *get_kprobe(void *addr); | 
| @@ -195,6 +196,11 @@ void add_rp_inst(struct kretprobe_instance *ri); | |||
| 195 | void kprobe_flush_task(struct task_struct *tk); | 196 | void kprobe_flush_task(struct task_struct *tk); | 
| 196 | void recycle_rp_inst(struct kretprobe_instance *ri); | 197 | void recycle_rp_inst(struct kretprobe_instance *ri); | 
| 197 | #else /* CONFIG_KPROBES */ | 198 | #else /* CONFIG_KPROBES */ | 
| 199 | |||
| 200 | #define __kprobes /**/ | ||
| 201 | struct jprobe; | ||
| 202 | struct kretprobe; | ||
| 203 | |||
| 198 | static inline struct kprobe *kprobe_running(void) | 204 | static inline struct kprobe *kprobe_running(void) | 
| 199 | { | 205 | { | 
| 200 | return NULL; | 206 | return NULL; | 
