Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-28 13:46:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:handler_chain

Proto:static void handler_chain(struct uprobe *uprobe, struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
struct uprobe *uprobe
struct pt_regs *regs
2074  remove = UPROBE_HANDLER_REMOVE
2075  bool need_prep = false
2077  lock for reading
2078  When uc cycle
2079  rc = 0
2081  If handler Then
2082  rc = handler(uc, regs)
2083  WARN(rc & ~UPROBE_HANDLER_MASK, "bad rc=0x%x from %ps()\n", rc, handler)
2087  If ret_handler Then need_prep = true
2090  remove &= rc
2093  If need_prep && Not remove Then prepare_uretprobe(uprobe, regs)
2096  If remove && consumers Then
2097  WARN_ON(!uprobe_is_active(uprobe))
2098  unapply_uprobe(uprobe, mm)
2100  lease a read lock
Caller
NameDescribe
handle_swbpRun handler and ask thread to singlestep.* Ensure all non-fatal signals cannot interrupt thread while it singlesteps.