summaryrefslogtreecommitdiff
path: root/kernel/extable.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-05-19 19:48:03 +0200
committerIngo Molnar <mingo@elte.hu>2011-05-19 19:48:03 +0200
commit29510ec3b626c86de9707bb8904ff940d430289b (patch)
tree4e1f579058302cbe7274435a72c64ee54012c192 /kernel/extable.c
parent398995ce7980b03b5803f8f31073b45d87746bc1 (diff)
parent95950c2ecb31314ef827428e43ff771cf3b037e5 (diff)
Merge branch 'tip/perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/core
Diffstat (limited to 'kernel/extable.c')
-rw-r--r--kernel/extable.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/extable.c b/kernel/extable.c
index 7f8f263f8524..c2d625fcda77 100644
--- a/kernel/extable.c
+++ b/kernel/extable.c
@@ -72,6 +72,14 @@ int core_kernel_text(unsigned long addr)
return 0;
}
+int core_kernel_data(unsigned long addr)
+{
+ if (addr >= (unsigned long)_sdata &&
+ addr < (unsigned long)_edata)
+ return 1;
+ return 0;
+}
+
int __kernel_text_address(unsigned long addr)
{
if (core_kernel_text(addr))