Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Prepare to single-step probed instruction out of line.

Proto:static int pre_ssout(struct uprobe *uprobe, struct pt_regs *regs, unsigned long bp_vaddr)

Type:int

Parameter:

TypeParameterName
struct uprobe *uprobe
struct pt_regs *regs
unsigned longbp_vaddr
1936  utask = Allocate a uprobe_task object for the task if if necessary.* Called when the thread hits a breakpoint.* Returns:* - pointer to new uprobe_task on success* - NULL otherwise
1937  If Not utask Then Return -ENOMEM
1940  xol_vaddr = xol_get_insn_slot - allocate a slot for xol.* Returns the allocated slot address or 0.
1941  If Not xol_vaddr Then Return -ENOMEM
1944  xol_vaddr = xol_vaddr
1945  vaddr = bp_vaddr
1947  err = arch_uprobe_pre_xol - prepare to execute out of line.*@auprobe: the probepoint information.*@regs: reflects the saved user state of current task.
1948  If Value for the false possibility is greater at compile time(err) Then
1949  xol_free_insn_slot - If slot was earlier allocated by*@xol_get_insn_slot(), make the slot available for* subsequent requests.
1950  Return err
1953  active_uprobe = uprobe
1954  state = UTASK_SSTEP
1955  Return 0
Caller
NameDescribe
handle_swbpRun handler and ask thread to singlestep.* Ensure all non-fatal signals cannot interrupt thread while it singlesteps.