函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-27 15:08:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:handler_chain

函数原型:static void handler_chain(struct uprobe *uprobe, struct pt_regs *regs)

返回类型:void

参数:

类型参数名称
struct uprobe *uprobe
struct pt_regs *regs
2074  remove等于UPROBE_HANDLER_REMOVE
2075  bool need_prep = false
2077  lock for reading
2078 uc循环
2079  rc等于0
2081  如果handler
2082  rc等于handler(uc, regs)
2083  WARN(rc & ~UPROBE_HANDLER_MASK, "bad rc=0x%x from %ps()\n", rc, handler)
2087  如果ret_handlerneed_prep = true
2090  remove与等于rc
2093  如果need_prep且非removeprepare_uretprobe(uprobe, regs)
2096  如果removeconsumers
2097  WARN_ON(!uprobe_is_active(uprobe))
2098  unapply_uprobe(uprobe, mm)
2100  lease a read lock
调用者
名称描述
handle_swbpRun handler and ask thread to singlestep.* Ensure all non-fatal signals cannot interrupt thread while it singlesteps.