diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-11-19 11:20:21 -0500 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2013-11-20 10:31:07 -0500 |
commit | ad439356ae5ae7688b39f1107fd5b874850fec18 (patch) | |
tree | 68bf1b6af1bbcf0d800cee2e011227a75a01149e /kernel/events/uprobes.c | |
parent | c912dae60ae6f659455f239298110adc67a5f3e9 (diff) |
uprobes: Document xol_area and arch_uprobe->insn/ixol
Document xol_area and arch_uprobe.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/events/uprobes.c')
-rw-r--r-- | kernel/events/uprobes.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index 51a7f535ff96..b886a5e7d4ff 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c | |||
@@ -73,6 +73,17 @@ struct uprobe { | |||
73 | struct inode *inode; /* Also hold a ref to inode */ | 73 | struct inode *inode; /* Also hold a ref to inode */ |
74 | loff_t offset; | 74 | loff_t offset; |
75 | unsigned long flags; | 75 | unsigned long flags; |
76 | |||
77 | /* | ||
78 | * The generic code assumes that it has two members of unknown type | ||
79 | * owned by the arch-specific code: | ||
80 | * | ||
81 | * insn - copy_insn() saves the original instruction here for | ||
82 | * arch_uprobe_analyze_insn(). | ||
83 | * | ||
84 | * ixol - potentially modified instruction to execute out of | ||
85 | * line, copied to xol_area by xol_get_insn_slot(). | ||
86 | */ | ||
76 | struct arch_uprobe arch; | 87 | struct arch_uprobe arch; |
77 | }; | 88 | }; |
78 | 89 | ||
@@ -86,6 +97,10 @@ struct return_instance { | |||
86 | }; | 97 | }; |
87 | 98 | ||
88 | /* | 99 | /* |
100 | * Execute out of line area: anonymous executable mapping installed | ||
101 | * by the probed task to execute the copy of the original instruction | ||
102 | * mangled by set_swbp(). | ||
103 | * | ||
89 | * On a breakpoint hit, thread contests for a slot. It frees the | 104 | * On a breakpoint hit, thread contests for a slot. It frees the |
90 | * slot after singlestep. Currently a fixed number of slots are | 105 | * slot after singlestep. Currently a fixed number of slots are |
91 | * allocated. | 106 | * allocated. |