Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-28 11:35:09
Last Modify:2022-05-22 18:14:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Unoptimize a kprobe if p is optimized

Proto:static void unoptimize_kprobe(struct kprobe *p, bool force)

Type:void

Parameter:

TypeParameterName
struct kprobe *p
boolforce
680  If Not Return true if the kprobe is an aggregator || Return true(!0) if the kprobe is disarmed. Note: p must be on hash list Then Return
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  If Not Is this kprobe really running optimized path ? Then Return
687  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
688  If optprobe_queued_unopt(op) Then
690  If force Then
698  Else
703  Return
707  If force Then
709  Short cut to direct unoptimizing
710  Else
711  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
712  Start optimizer after OPTIMIZE_DELAY passed
Caller
NameDescribe
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