summaryrefslogtreecommitdiffstats
path: root/runtime/uprobes2/uprobes.h
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2010-01-13 19:37:51 +0100
committerTim Moore <timoore@redhat.com>2010-01-13 19:37:51 +0100
commit58b06a43d003a1e658b184d5ef577d44d824263e (patch)
tree513f1e61f0413a782747ccee02ee98ed7f6e8097 /runtime/uprobes2/uprobes.h
parent275ea5e8ee085af6a7782fe3acbffe07645aa0a4 (diff)
downloadsystemtap-steved-58b06a43d003a1e658b184d5ef577d44d824263e.tar.gz
systemtap-steved-58b06a43d003a1e658b184d5ef577d44d824263e.tar.xz
systemtap-steved-58b06a43d003a1e658b184d5ef577d44d824263e.zip
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
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