diff options
author | David A. Long <dave.long@linaro.org> | 2013-10-15 17:04:16 -0400 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2013-11-06 13:59:37 -0500 |
commit | 3820b4d2789f5166afdb136bb14f93166e6cfbc2 (patch) | |
tree | f699664c81b82392b61220c0a0274c25954b5b4f | |
parent | f891d8cfb8372eb9cfe9d0d4ca61c75bafeaae37 (diff) |
uprobes: Move function declarations out of arch
Move the function declarations from the arch headers to the common
header, since only the function bodies are architecture-specific.
These changes are from Vincent Rabin's uprobes patch.
[ oleg: update arch/powerpc/include/asm/uprobes.h ]
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: David A. Long <dave.long@linaro.org>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
-rw-r--r-- | arch/powerpc/include/asm/uprobes.h | 7 | ||||
-rw-r--r-- | arch/x86/include/asm/uprobes.h | 7 | ||||
-rw-r--r-- | include/linux/uprobes.h | 8 |
3 files changed, 8 insertions, 14 deletions
diff --git a/arch/powerpc/include/asm/uprobes.h b/arch/powerpc/include/asm/uprobes.h index 23016020915e..b6fc3178372a 100644 --- a/arch/powerpc/include/asm/uprobes.h +++ b/arch/powerpc/include/asm/uprobes.h | |||
@@ -45,11 +45,4 @@ struct arch_uprobe_task { | |||
45 | unsigned long saved_trap_nr; | 45 | unsigned long saved_trap_nr; |
46 | }; | 46 | }; |
47 | 47 | ||
48 | extern int arch_uprobe_analyze_insn(struct arch_uprobe *aup, struct mm_struct *mm, unsigned long addr); | ||
49 | extern int arch_uprobe_pre_xol(struct arch_uprobe *aup, struct pt_regs *regs); | ||
50 | extern int arch_uprobe_post_xol(struct arch_uprobe *aup, struct pt_regs *regs); | ||
51 | extern bool arch_uprobe_xol_was_trapped(struct task_struct *tsk); | ||
52 | extern int arch_uprobe_exception_notify(struct notifier_block *self, unsigned long val, void *data); | ||
53 | extern void arch_uprobe_abort_xol(struct arch_uprobe *aup, struct pt_regs *regs); | ||
54 | extern unsigned long arch_uretprobe_hijack_return_addr(unsigned long trampoline_vaddr, struct pt_regs *regs); | ||
55 | #endif /* _ASM_UPROBES_H */ | 48 | #endif /* _ASM_UPROBES_H */ |
diff --git a/arch/x86/include/asm/uprobes.h b/arch/x86/include/asm/uprobes.h index 6e5197910fd8..b20b4d68b934 100644 --- a/arch/x86/include/asm/uprobes.h +++ b/arch/x86/include/asm/uprobes.h | |||
@@ -49,11 +49,4 @@ struct arch_uprobe_task { | |||
49 | unsigned int saved_tf; | 49 | unsigned int saved_tf; |
50 | }; | 50 | }; |
51 | 51 | ||
52 | extern int arch_uprobe_analyze_insn(struct arch_uprobe *aup, struct mm_struct *mm, unsigned long addr); | ||
53 | extern int arch_uprobe_pre_xol(struct arch_uprobe *aup, struct pt_regs *regs); | ||
54 | extern int arch_uprobe_post_xol(struct arch_uprobe *aup, struct pt_regs *regs); | ||
55 | extern bool arch_uprobe_xol_was_trapped(struct task_struct *tsk); | ||
56 | extern int arch_uprobe_exception_notify(struct notifier_block *self, unsigned long val, void *data); | ||
57 | extern void arch_uprobe_abort_xol(struct arch_uprobe *aup, struct pt_regs *regs); | ||
58 | extern unsigned long arch_uretprobe_hijack_return_addr(unsigned long trampoline_vaddr, struct pt_regs *regs); | ||
59 | #endif /* _ASM_UPROBES_H */ | 52 | #endif /* _ASM_UPROBES_H */ |
diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h index 9e0d5a6fe7a8..28473e3f6068 100644 --- a/include/linux/uprobes.h +++ b/include/linux/uprobes.h | |||
@@ -30,6 +30,7 @@ | |||
30 | struct vm_area_struct; | 30 | struct vm_area_struct; |
31 | struct mm_struct; | 31 | struct mm_struct; |
32 | struct inode; | 32 | struct inode; |
33 | struct notifier_block; | ||
33 | 34 | ||
34 | #ifdef CONFIG_ARCH_SUPPORTS_UPROBES | 35 | #ifdef CONFIG_ARCH_SUPPORTS_UPROBES |
35 | # include <asm/uprobes.h> | 36 | # include <asm/uprobes.h> |
@@ -125,6 +126,13 @@ extern void uprobe_notify_resume(struct pt_regs *regs); | |||
125 | extern bool uprobe_deny_signal(void); | 126 | extern bool uprobe_deny_signal(void); |
126 | extern bool arch_uprobe_skip_sstep(struct arch_uprobe *aup, struct pt_regs *regs); | 127 | extern bool arch_uprobe_skip_sstep(struct arch_uprobe *aup, struct pt_regs *regs); |
127 | extern void uprobe_clear_state(struct mm_struct *mm); | 128 | extern void uprobe_clear_state(struct mm_struct *mm); |
129 | extern int arch_uprobe_analyze_insn(struct arch_uprobe *aup, struct mm_struct *mm, unsigned long addr); | ||
130 | extern int arch_uprobe_pre_xol(struct arch_uprobe *aup, struct pt_regs *regs); | ||
131 | extern int arch_uprobe_post_xol(struct arch_uprobe *aup, struct pt_regs *regs); | ||
132 | extern bool arch_uprobe_xol_was_trapped(struct task_struct *tsk); | ||
133 | extern int arch_uprobe_exception_notify(struct notifier_block *self, unsigned long val, void *data); | ||
134 | extern void arch_uprobe_abort_xol(struct arch_uprobe *aup, struct pt_regs *regs); | ||
135 | extern unsigned long arch_uretprobe_hijack_return_addr(unsigned long trampoline_vaddr, struct pt_regs *regs); | ||
128 | #else /* !CONFIG_UPROBES */ | 136 | #else /* !CONFIG_UPROBES */ |
129 | struct uprobes_state { | 137 | struct uprobes_state { |
130 | }; | 138 | }; |