[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-cb57a2b4cff7edf2a4e32c0163200e9434807e0a@git.kernel.org>
Date: Tue, 20 Nov 2012 23:35:40 -0800
From: "tip-bot for H. Peter Anvin" <hpa@...ux.intel.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...nel.org,
stable@...r.kernel.org, robert.richter@....com,
jun.zhang@...el.com, tglx@...utronix.de, hpa@...ux.intel.com,
wei.yang@...driver.com
Subject: [tip:x86/urgent] x86-32: Export kernel_stack_pointer()
for modules
Commit-ID: cb57a2b4cff7edf2a4e32c0163200e9434807e0a
Gitweb: http://git.kernel.org/tip/cb57a2b4cff7edf2a4e32c0163200e9434807e0a
Author: H. Peter Anvin <hpa@...ux.intel.com>
AuthorDate: Tue, 20 Nov 2012 22:21:02 -0800
Committer: H. Peter Anvin <hpa@...ux.intel.com>
CommitDate: Tue, 20 Nov 2012 22:23:23 -0800
x86-32: Export kernel_stack_pointer() for modules
Modules, in particular oprofile (and possibly other similar tools)
need kernel_stack_pointer(), so export it using EXPORT_SYMBOL_GPL().
Cc: Yang Wei <wei.yang@...driver.com>
Cc: Robert Richter <robert.richter@....com>
Cc: Jun Zhang <jun.zhang@...el.com>
Cc: <stable@...r.kernel.org>
Link: http://lkml.kernel.org/r/20120912135059.GZ8285@erda.amd.com
Signed-off-by: H. Peter Anvin <hpa@...ux.intel.com>
---
arch/x86/kernel/ptrace.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
index 2484e33..5e0596b 100644
--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
@@ -22,6 +22,7 @@
#include <linux/perf_event.h>
#include <linux/hw_breakpoint.h>
#include <linux/rcupdate.h>
+#include <linux/module.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
@@ -193,6 +194,7 @@ unsigned long kernel_stack_pointer(struct pt_regs *regs)
return (unsigned long)regs;
}
+EXPORT_SYMBOL_GPL(kernel_stack_pointer);
static unsigned long *pt_regs_access(struct pt_regs *regs, unsigned long regno)
{
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists