From 58b06a43d003a1e658b184d5ef577d44d824263e Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Wed, 13 Jan 2010 19:37:51 +0100 Subject: map through uretprobe trampoline in an arbitrary task * runtime/uprobes2/uprobes.c (uprobe_get_pc_task): new function (lookup_uretprobe): new helper function (uprobe_get_pc): use it * runtime/uprobes2/uprobes.h (uprobe_get_pc_task): declare * runtime/uprobes/uprobes.c : ditto * runtime/uprobes/uprobes.h : ditto --- runtime/uprobes/uprobes.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/uprobes/uprobes.h') diff --git a/runtime/uprobes/uprobes.h b/runtime/uprobes/uprobes.h index 80725f23..2096ff20 100644 --- a/runtime/uprobes/uprobes.h +++ b/runtime/uprobes/uprobes.h @@ -107,6 +107,12 @@ extern void unmap_uretprobe(struct uretprobe *rp); extern unsigned long uprobe_get_pc(struct uretprobe_instance *ri, unsigned long pc, unsigned long sp); +/* + * This version will do the mapping for an arbitrary task. + */ +extern unsigned long uprobe_get_pc_task(struct task_struct *task, + unsigned long pc, + unsigned long sp); #ifdef UPROBES_IMPLEMENTATION -- cgit