函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:find_active_uprobe

函数原型:static struct uprobe *find_active_uprobe(unsigned long bp_vaddr, int *is_swbp)

返回类型:struct uprobe

参数:

类型参数名称
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  如果vmaOur start address within vm_mm. 小于等于bp_vaddr
2058  如果非uprobeis_swbp等于is_trap_at_addr(mm, bp_vaddr)
2060  否则
2061  is_swbp等于负EFAULT
2064  如果非uprobest_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).mmf_recalc_uprobes(mm)
2066  lease a read lock
2068  返回:uprobe
调用者
名称描述
handle_swbpRun handler and ask thread to singlestep.* Ensure all non-fatal signals cannot interrupt thread while it singlesteps.