Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Allocate new optimized_kprobe and try to prepare optimized instructions

Proto:static struct kprobe *alloc_aggr_kprobe(struct kprobe *p)

Type:struct kprobe

Parameter:

TypeParameterName
struct kprobe *p
784  op = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
785  If Not op Then Return NULL
788  Initialization list head
789  location of the probe point = location of the probe point
790  __prepare_optimized_kprobe(op, p)
792  Return kp
Caller
NameDescribe
try_to_optimize_kprobePrepare an optimized_kprobe and optimize it* NOTE: p must be a normal registered kprobe
register_aggr_kprobeThis is the second or subsequent kprobe at the address - handle* the intricacies