Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return an optimized kprobe whose optimizing code replaces* instructions including addr (exclude breakpoint).

Proto:static struct kprobe *get_optimized_kprobe(unsigned long addr)

Type:struct kprobe

Parameter:

TypeParameterName
unsigned longaddr
442  struct kprobe * p = NULL
446  When Not p && i < MAX_OPTIMIZED_LENGTH cycle 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  If p && Return true(!0) if the kprobe is ready for optimization. Then
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  If Check the addr is within the optimized instructions. Then Return p
455  Return NULL
Caller
NameDescribe
__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