函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_aggr_kprobe

函数原型:static void init_aggr_kprobe(struct kprobe *ap, struct kprobe *p)

返回类型:void

参数:

类型参数名称
struct kprobe *ap
struct kprobe *p
1324  Keep all fields in the kprobe consistent
1325  flush_insn_slot(ap)
1326  location of the probe point 等于 location of the probe point
1327  * Indicates various status flags. * Protected by kprobe_mutex after this kprobe is registered.等于* Indicates various status flags. * Protected by kprobe_mutex after this kprobe is registered.按位与probe is really optimized.* NOTE:* this flag is only for optimized_kprobe.的反
1328  Called before addr is executed. 等于aggr_pre_handler
1329  * ... called if executing addr causes a fault (eg. page fault). * Return 1 if it handled fault, otherwise kernel will see it.等于aggr_fault_handler
1331  如果 Called after addr is executed, unless... 且非Has this kprobe gone ? Called after addr is executed, unless... 等于aggr_post_handler
1334  初始化链表头
1335  INIT_HLIST_NODE( & hlist)
1337  添加RCU保护项
1338  rcu新旧更换
调用者
名称描述
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