diff options
author | Josh Stone <jistone@redhat.com> | 2013-01-13 13:03:34 -0500 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2013-02-08 11:47:13 -0500 |
commit | e8440c1458ba571bc3fac8a6beb53ff604199f5b (patch) | |
tree | 59abbd23435cd341250a028b4fa06826b7133fbe /kernel/ptrace.c | |
parent | af4355e91f15812df8608925738c91be57c580dd (diff) |
uprobes: Add exports for module use
The original pull message for uprobes (commit 654443e2) noted:
This tree includes uprobes support in 'perf probe' - but SystemTap
(and other tools) can take advantage of user probe points as well.
In order to actually be usable in module-based tools like SystemTap, the
interface needs to be exported. This patch first adds the obvious
exports for uprobe_register and uprobe_unregister. Then it also adds
one for task_user_regset_view, which is necessary to get the correct
state of userspace registers.
Signed-off-by: Josh Stone <jistone@redhat.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r-- | kernel/ptrace.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 6cbeaae4406d..acbd28424d81 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -712,6 +712,12 @@ static int ptrace_regset(struct task_struct *task, int req, unsigned int type, | |||
712 | kiov->iov_len, kiov->iov_base); | 712 | kiov->iov_len, kiov->iov_base); |
713 | } | 713 | } |
714 | 714 | ||
715 | /* | ||
716 | * This is declared in linux/regset.h and defined in machine-dependent | ||
717 | * code. We put the export here, near the primary machine-neutral use, | ||
718 | * to ensure no machine forgets it. | ||
719 | */ | ||
720 | EXPORT_SYMBOL_GPL(task_user_regset_view); | ||
715 | #endif | 721 | #endif |
716 | 722 | ||
717 | int ptrace_request(struct task_struct *child, long request, | 723 | int ptrace_request(struct task_struct *child, long request, |