函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 15:01:53 |
Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:perf_free_event
函数原型:static void perf_free_event(struct perf_event *event, struct perf_event_context *ctx)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct perf_event * | event | |
struct perf_event_context * | ctx |
11942 | 如果WARN_ON_ONCE(!parent)则返回 |
11945 | mutex_lock( & child_mutex) |
11946 | 删除链表项并重新初始化 |
11951 | 关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & Protect the states of the events in the list,* nr_active, and the list:) |
11952 | perf_group_detach(event) |
11953 | Remove an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held. |
11954 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
名称 | 描述 |
---|---|
perf_event_free_task | 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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |