Function report | 
Source Code:kernel\events\uprobes.c | 
Create Date:2022-07-28 13:46:43 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Run handler and ask thread to singlestep.* Ensure all non-fatal signals cannot interrupt thread while it singlesteps.
Proto:static void handle_swbp(struct pt_regs *regs)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct pt_regs * | regs | 
| 2193 | If bp_vaddr == Current area->vaddr notion assume the trampoline address is always* equal area->vaddr.* Returns -1 in case the xol_area is not allocated. Then Return handle_trampoline(regs) | 
| 2196 | uprobe = find_active_uprobe(bp_vaddr, & is_swbp) | 
| 2197 | If Not uprobe Then | 
| 2198 | If is_swbp > 0 Then | 
| 2200 | send_sig(SIGTRAP, current process, 0) | 
| 2201 | Else | 
| 2210 | instruction_pointer_set(regs, bp_vaddr) | 
| 2212 | Return | 
| 2216 | instruction_pointer_set(regs, bp_vaddr) | 
| 2223 | If Value for the false possibility is greater at compile time(!Determine whether a bit is set(Have a copy of original instruction , & flags)) Then Go to out | 
| 2233 | smp_rmb() | 
| 2236 | If Not Allocate a uprobe_task object for the task if if necessary.* Called when the thread hits a breakpoint.* Returns:* - pointer to new uprobe_task on success* - NULL otherwise Then Go to out | 
| 2242 | handler_chain(uprobe, regs) | 
| 2247 | If Not Prepare to single-step probed instruction out of line. Then Return | 
| 2251 | out : | 
| 2252 | put_uprobe(uprobe) | 
| Name | Describe | 
|---|---|
| uprobe_notify_resume | On breakpoint hit, breakpoint notifier sets the TIF_UPROBE flag and* allows the thread to return from interrupt. After that handle_swbp()* sets utask->active_uprobe.* On singlestep exception, singlestep notifier sets the TIF_UPROBE flag | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |