summaryrefslogtreecommitdiffstats
path: root/runtime/uprobes/uprobes.h
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2010-01-07 14:00:49 -0500
committerDave Brolley <brolley@redhat.com>2010-01-07 14:00:49 -0500
commitaf7b183c32c627b1934e9be2d028d7c4ff1a1d2e (patch)
treea1670ad0f02f3ebb47ef2aca648ff7d6afc4e5db /runtime/uprobes/uprobes.h
parenta0626e2e2ea13b6fc974157fb71fe6d48f4c7ec0 (diff)
parent4bd4d40e19f7ba203d5e380965210181648f560a (diff)
downloadsystemtap-steved-af7b183c32c627b1934e9be2d028d7c4ff1a1d2e.tar.gz
systemtap-steved-af7b183c32c627b1934e9be2d028d7c4ff1a1d2e.tar.xz
systemtap-steved-af7b183c32c627b1934e9be2d028d7c4ff1a1d2e.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/uprobes/uprobes.h')
-rw-r--r--runtime/uprobes/uprobes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/uprobes/uprobes.h b/runtime/uprobes/uprobes.h
index e888f9e8..80725f23 100644
--- a/runtime/uprobes/uprobes.h
+++ b/runtime/uprobes/uprobes.h
@@ -99,7 +99,11 @@ extern void unmap_uretprobe(struct uretprobe *rp);
* Given a program counter, translate it back to the original address
* if it is the address of the trampoline. sp is the stack pointer for
* the frame that corresponds to the address.
+ *
+ * When not called from a uretprobe hander, pass GET_PC_URETPROBE_NONE
+ * instead of a uretprobe_instance.
*/
+#define GET_PC_URETPROBE_NONE ((struct uretprobe_instance *)-1L)
extern unsigned long uprobe_get_pc(struct uretprobe_instance *ri,
unsigned long pc,
unsigned long sp);