Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kprobes\core.c Create Date:2022-07-28 08:38:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Interrupts are disabled on entry as trap1 is an interrupt gate and they* remain disabled throughout this function.

Proto:int kprobe_debug_handler(struct pt_regs *regs)

Type:int

Parameter:

TypeParameterName
struct pt_regs *regs
980  cur = kprobe_running() will just return the current_kprobe on this CPU
981  kcb = get_kprobe_ctlblk()
983  If Not cur Then Return 0
986  Called after single-stepping. p->addr is the address of the* instruction whose first byte has been replaced by the "int 3"* instruction. To avoid the SMP problems that can occur when we* temporarily put back the original opcode to single-step, we
987  flags |= kprobe_saved_flags
989  If kprobe_status != KPROBE_REENTER && Called after addr is executed, unless... Then
990  kprobe_status = KPROBE_HIT_SSDONE
991  Called after addr is executed, unless... (cur, regs, 0)
995  If kprobe_status == KPROBE_REENTER Then
996  restore_previous_kprobe(kcb)
997  Go to out
999  reset_current_kprobe()
1000  out :
1006  If flags & X86_EFLAGS_TF Then Return 0
1009  Return 1