函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:recycle_rp_inst

函数原型:void recycle_rp_inst(struct kretprobe_instance *ri, struct hlist_head *head)

返回类型:void

参数:

类型参数名称
struct kretprobe_instance *ri
struct hlist_head *head
1181  rp等于rp
1184  hlist_del( & hlist)
1185  INIT_HLIST_NODE( & hlist)
1186  如果此条件成立可能性大(为编译器优化)(rp)则
1187  raw_spin_lock( & lock)
1188  hlist_add_head( & hlist, & free_instances)
1189  raw_spin_unlock( & lock)
1190  否则hlist_add_head( & hlist, head)
调用者
名称描述
kprobe_flush_taskThis function is called from finish_task_switch when task tk becomes dead,* so that we can recycle any function-return probe instances associated* with this task. These left over instances represent probed functions
trampoline_handlerCalled from kretprobe_trampoline