Function report |
Source Code:arch\x86\kernel\kprobes\opt.c |
Create Date:2022-07-28 08:39:12 |
| Last Modify:2022-05-22 07:44:06 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Optimized kprobe call back function: called from optinsn
Proto:static void optimized_callback(struct optimized_kprobe *op, struct pt_regs *regs)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct optimized_kprobe * | op | |
| struct pt_regs * | regs |
| 151 | If Is this kprobe disabled ? Then Return |
| 156 | kprobes_inc_nmissed_count( & kp) |
| 157 | Else |
| 158 | kcb = get_kprobe_ctlblk() |
| 162 | cs |= get_kernel_rpl() |
| 163 | gs = 0 |
| 165 | ip = location of the probe point + INT3_SIZE |
| 166 | orig_ax = ~0UL |
| 168 | __this_cpu_write(current_kprobe, & kp) |
| 170 | opt_pre_handler( & kp, regs) |
| 171 | __this_cpu_write(current_kprobe, NULL) |
| 173 | preempt_enable() |
| 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 |