函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This 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

函数原型:void kprobe_flush_task(struct task_struct *tk)

返回类型:void

参数:

类型参数名称
struct task_struct *tk
1250  flags等于0
1252  如果此条件成立可能性小(为编译器优化)(!kprobes_initialized)则返回
1256  INIT_HLIST_HEAD( & empty_rp)
1257  hash等于hash_ptr(tk, KPROBE_HASH_BITS)
1258  head等于kretprobe_inst_table[hash]
1259  kretprobe_table_lock(hash, & flags)
1261  如果task恒等于tkrecycle_rp_inst(ri, & empty_rp)
1264  kretprobe_table_unlock(hash, & flags)
1266  hlist_del( & hlist)
1267  kfree(ri)
调用者
名称描述
finish_task_switchsh_task_switch - clean up after a task-switch*@prev: the thread we just switched away from