summaryrefslogtreecommitdiffstats
path: root/runtime/uprobes2/uprobes.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/uprobes2/uprobes.h')
-rw-r--r--runtime/uprobes2/uprobes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/uprobes2/uprobes.h b/runtime/uprobes2/uprobes.h
index c4e1f59c..b48a9832 100644
--- a/runtime/uprobes2/uprobes.h
+++ b/runtime/uprobes2/uprobes.h
@@ -100,6 +100,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