函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Unoptimize a kprobe if p is optimized

函数原型:static void unoptimize_kprobe(struct kprobe *p, bool force)

返回类型:void

参数:

类型参数名称
struct kprobe *p
boolforce
680  如果非Return true if the kprobe is an aggregator Return true(!0) if the kprobe is disarmed. Note: p must be on hash list 则返回
683  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)
684  如果非Is this kprobe really running optimized path ? 则返回
687  如果非链表为空
688  如果optprobe_queued_unopt(op)则
690  如果force
698  否则
703  返回
707  如果force
709  Short cut to direct unoptimizing
710  否则
711  添加链表项
712  Start optimizer after OPTIMIZE_DELAY passed
调用者
名称描述
unoptimize_all_kprobes
__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
add_new_kprobeAdd the new probe to ap->list