summaryrefslogtreecommitdiffstats
path: root/include/linux/uprobes.h
diff options
context:
space:
mode:
authorAnton Arapov <anton@redhat.com>2012-11-01 00:00:00 +0200
committerAnton Arapov <anton@redhat.com>2012-11-01 13:42:41 +0100
commitbb46fb09dc6fc12927b21f3dce909b6f69dc8247 (patch)
treebe743ff176977b384a0e18804b1b3ba0b132d000 /include/linux/uprobes.h
parent64f2f461a27d90509299071c5d60cc3a0b7d6f38 (diff)
downloadkernel-uprobes-bb46fb09dc6fc12927b21f3dce909b6f69dc8247.tar.gz
kernel-uprobes-bb46fb09dc6fc12927b21f3dce909b6f69dc8247.tar.xz
kernel-uprobes-bb46fb09dc6fc12927b21f3dce909b6f69dc8247.zip
uretprobes: trampoline implementation
The first time a uprobe corresponding to a uretprobe is hit for a process, a trampoline slot is obtained in the uprobes_xol_area and initialized with a breakpoint instruction. This slot is subsequently used by all uretprobes. Signed-off-by: Anithra P Janakiraman <anithra@linux.vnet.ibm.com> Signed-off-by: Anton Arapov <anton@redhat.com>
Diffstat (limited to 'include/linux/uprobes.h')
-rw-r--r--include/linux/uprobes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h
index 24594571c5a..ffb1984db93 100644
--- a/include/linux/uprobes.h
+++ b/include/linux/uprobes.h
@@ -84,6 +84,7 @@ struct xol_area {
* the vma go away, and we must handle that reasonably gracefully.
*/
unsigned long vaddr; /* Page(s) of instruction slots */
+ unsigned long uretprobe_trampoline_addr; /* addr of trampolines */
};
struct uprobes_state {