diff options
author | Anton Blanchard <anton@samba.org> | 2006-03-26 19:46:18 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-28 00:19:52 -0500 |
commit | 2f25194dbe0c4b2472ce133ea3e9bcbb14936ae7 (patch) | |
tree | 4bb2a77da578dafd951ff2bd24ff2fd8c61c0b83 /arch/powerpc | |
parent | 72533db0121e11811366b5a456f4068d1a4d542c (diff) |
[PATCH] powerpc: export validate_sp for oprofile calltrace
Export validate_sp so we can use it in the oprofile calltrace code.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/process.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index c6e81bbd615c..706090c99f47 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -770,7 +770,7 @@ out: | |||
770 | return error; | 770 | return error; |
771 | } | 771 | } |
772 | 772 | ||
773 | static int validate_sp(unsigned long sp, struct task_struct *p, | 773 | int validate_sp(unsigned long sp, struct task_struct *p, |
774 | unsigned long nbytes) | 774 | unsigned long nbytes) |
775 | { | 775 | { |
776 | unsigned long stack_page = (unsigned long)task_stack_page(p); | 776 | unsigned long stack_page = (unsigned long)task_stack_page(p); |
@@ -808,6 +808,8 @@ static int validate_sp(unsigned long sp, struct task_struct *p, | |||
808 | #define FRAME_MARKER 2 | 808 | #define FRAME_MARKER 2 |
809 | #endif | 809 | #endif |
810 | 810 | ||
811 | EXPORT_SYMBOL(validate_sp); | ||
812 | |||
811 | unsigned long get_wchan(struct task_struct *p) | 813 | unsigned long get_wchan(struct task_struct *p) |
812 | { | 814 | { |
813 | unsigned long ip, sp; | 815 | unsigned long ip, sp; |