函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 15:01:49 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:perf_event_exit_task_context
函数原型:static void perf_event_exit_task_context(struct task_struct *child, int ctxn)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct task_struct * | child | |
| int | ctxn |
| 11841 | struct perf_event_context * child_ctx, * clone_ctx = NULL |
| 11844 | WARN_ON_ONCE(child != 当前进程) |
| 11846 | child_ctx等于Get the context for a task and increment its pin_count so it* can't get swapped to another task. This also increments its* reference count so that the context can't get freed. |
| 11847 | 如果非child_ctx则返回 |
| 11860 | 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.) |
| 11867 | 关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & Protect the states of the events in the list,* nr_active, and the list:) |
| 11876 | WRITE_ONCE(task, TASK_TOMBSTONE) |
| 11877 | put_task_struct(当前进程) |
| 11880 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
| 11890 | perf_event_task(child, child_ctx, 0) |
| 11893 | perf_event_exit_event(child_event, child_ctx, child) |
| 名称 | 描述 |
|---|---|
| perf_event_exit_task | When a child task exits, feed back event values to parent events.* Can be called with cred_guard_mutex held when called from* install_exec_creds(). |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |