函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-27 12:38:43
Last Modify:2022-05-22 18:14:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Return an optimized kprobe whose optimizing code replaces* instructions including addr (exclude breakpoint).

函数原型:static struct kprobe *get_optimized_kprobe(unsigned long addr)

返回类型:struct kprobe

参数:

类型参数名称
unsigned longaddr
442  struct kprobe * p = NULL
446  以非pi小于MAX_OPTIMIZED_LENGTH循环p等于This routine is called either:* - under the kprobe_mutex - during kprobe_[un]register()* OR* - with preemption disabled - from arch/xxx/kernel/kprobes.c
449  如果pReturn true(!0) if the kprobe is ready for optimization.
450  op等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(p, structoptimized_kprobe, kp)
451  如果Check the addr is within the optimized instructions. 则返回:p
455  返回:NULL
调用者
名称描述
__arm_kprobePut a breakpoint for a probe. Must be called with text_mutex locked
__disarm_kprobeRemove the breakpoint of a probe. Must be called with text_mutex locked