Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct optimized_kprobe *op
struct pt_regs *regs
151  If Is this kprobe disabled ? Then Return
154  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
155  If kprobe_running() will just return the current_kprobe on this CPU Then
156  kprobes_inc_nmissed_count( & kp)
157  Else
158  kcb = get_kprobe_ctlblk()
160  cs = Segment selector values corresponding to the above entries:
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)
169  kprobe_status = kprobe_status settings
170  opt_pre_handler( & kp, regs)
171  __this_cpu_write(current_kprobe, NULL)
173  preempt_enable()