函数逻辑报告 | 
Source Code:kernel\events\core.c | 
Create Date:2022-07-27 15:01:57 | 
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Free a context as created by inheritance by perf_event_init_task() below,* used by fork() in case of fail.* Even though the task has never lived, the context and events have been* exposed through the child_list, so we must take care tearing it all down.
函数原型:void perf_event_free_task(struct task_struct *task)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct task_struct * | task | 
| 11972 | ctx等于perf_event_ctxp[ctxn] | 
| 11973 | 如果非ctx则继续下一循环 | 
| 11976 | mutex_lock( & Protect the list of events. Locking either mutex or lock* is sufficient to ensure the list doesn't change; to change* the list you need to lock both the mutex and the spinlock.) | 
| 11977 | 关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & Protect the states of the events in the list,* nr_active, and the list:) | 
| 11985 | WRITE_ONCE(task, TASK_TOMBSTONE) | 
| 11986 | put_task_struct(task) | 
| 11987 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) | 
| 11990 | perf_free_event(event, ctx) | 
| 12008 | wait_var_event( & refcount, _read - get a refcount's value*@r: the refcount* Return: the refcount's value == 1) | 
| 名称 | 描述 | 
|---|---|
| perf_event_init_task | 进程性能调优 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |