summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2012-08-07 15:51:06 +0200
committerAnton Arapov <anton@redhat.com>2012-10-29 11:50:48 +0100
commit8d2a5384c188a704962e670ad4b68869819de925 (patch)
treecf6b346704b73037aa252f7a426bd224e90ebcb8
parent25867805ad90019c10b8e71a78ea394bf344007c (diff)
downloadkernel-uprobes-8d2a5384c188a704962e670ad4b68869819de925.zip
kernel-uprobes-8d2a5384c188a704962e670ad4b68869819de925.tar.gz
kernel-uprobes-8d2a5384c188a704962e670ad4b68869819de925.tar.xz
uprobes: add exports necessary for uprobes use by modules
ssia. Signed-off-by: Anton Arapov <anton@redhat.com>
-rw-r--r--kernel/events/uprobes.c3
-rw-r--r--kernel/ptrace.c6
2 files changed, 9 insertions, 0 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index c92651d..e933f65 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -27,6 +27,7 @@
#include <linux/pagemap.h> /* read_mapping_page */
#include <linux/slab.h>
#include <linux/sched.h>
+#include <linux/export.h>
#include <linux/rmap.h> /* anon_vma_prepare */
#include <linux/mmu_notifier.h> /* set_pte_at_notify */
#include <linux/swap.h> /* try_to_free_swap */
@@ -862,6 +863,7 @@ int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *
return ret;
}
+EXPORT_SYMBOL_GPL(uprobe_register);
/*
* uprobe_unregister - unregister a already registered probe.
@@ -893,6 +895,7 @@ void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consume
if (uprobe)
put_uprobe(uprobe);
}
+EXPORT_SYMBOL_GPL(uprobe_unregister);
static struct rb_node *
find_node_in_range(struct inode *inode, loff_t min, loff_t max)
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index a232bb5..764fcd1 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -33,6 +33,12 @@ static int ptrace_trapping_sleep_fn(void *flags)
}
/*
+ * This is declared in linux/regset.h and defined in machine-dependent
+ * code. We put the export here to ensure no machine forgets it.
+ */
+EXPORT_SYMBOL_GPL(task_user_regset_view);
+
+/*
* ptrace a task: make the debugger its new parent and
* move it to the ptrace list.
*