Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_aggr_kprobe

Proto:static void init_aggr_kprobe(struct kprobe *ap, struct kprobe *p)

Type:void

Parameter:

TypeParameterName
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  If Called after addr is executed, unless... && Not Has this kprobe gone ? Then Called after addr is executed, unless... = aggr_post_handler
1334  Initialization list head
1335  INIT_HLIST_NODE( & hlist)
1337  list_add_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head
1338  hlist_replace_rcu - replace old entry by new one*@old : the element to be replaced*@new : the new element to insert* The @old entry will be replaced with the @new entry atomically.
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