Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:find_active_uprobe

Proto:static struct uprobe *find_active_uprobe(unsigned long bp_vaddr, int *is_swbp)

Type:struct uprobe

Parameter:

TypeParameterName
unsigned longbp_vaddr
int *is_swbp
2044  mm = mm
2045  struct uprobe * uprobe = NULL
2048  lock for reading
2049  vma = Look up the first VMA which satisfies addr < vm_end, NULL if none.
2050  If vma && Our start address within vm_mm. <= bp_vaddr Then
2058  If Not uprobe Then is_swbp = is_trap_at_addr(mm, bp_vaddr)
2060  Else
2061  is_swbp = -EFAULT
2064  If Not uprobe && st_and_clear_bit - Clear a bit and return its old value*@nr: Bit to clear*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier). Then mmf_recalc_uprobes(mm)
2066  lease a read lock
2068  Return uprobe
Caller
NameDescribe
handle_swbpRun handler and ask thread to singlestep.* Ensure all non-fatal signals cannot interrupt thread while it singlesteps.