函数逻辑报告 |
Source Code:kernel\kprobes.c |
Create Date:2022-07-27 12:39:19 |
Last Modify:2022-05-22 18:14:58 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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恒等于tk则recycle_rp_inst(ri, & empty_rp) |
1264 | kretprobe_table_unlock(hash, & flags) |
名称 | 描述 |
---|---|
finish_task_switch | sh_task_switch - clean up after a task-switch*@prev: the thread we just switched away from |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |