函数逻辑报告 | 
Source Code:kernel\events\core.c | 
Create Date:2022-07-27 14:54:14 | 
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Kill an event dead; while event:refcount will preserve the event* object, it will not preserve its functionality. Once the last 'user'* gives up the object, we'll destroy the thing.
函数原型:int perf_event_release_kernel(struct perf_event *event)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct perf_event * | event | 
| 4728 | 如果非ctx则 | 
| 4729 | WARN_ON_ONCE(attach_state & (PERF_ATTACH_CONTEXT | PERF_ATTACH_GROUP)) | 
| 4731 | 转到:no_ctx | 
| 4737 | ctx等于perf_event_ctx_lock(event) | 
| 4738 | WARN_ON_ONCE(These fields let us detect when two contexts have both* been cloned (inherited) from a common ancestor.) | 
| 4741 | 关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & Protect the states of the events in the list,* nr_active, and the list:) | 
| 4753 | state等于PERF_EVENT_STATE_DEAD | 
| 4754 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) | 
| 4756 | perf_event_ctx_unlock(event, ctx) | 
| 4758 | again : | 
| 4759 | mutex_lock( & child_mutex) | 
| 4783 | 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.) | 
| 4784 | mutex_lock( & child_mutex) | 
| 4795 | 链表项移动到头部 | 
| 4806 | 转到:again | 
| 4813 | 删除链表项 | 
| 4820 | smp_mb() | 
| 4821 | wake_up_var(var) | 
| 4824 | no_ctx : | 
| 4826 | 返回:0 | 
| 名称 | 描述 | 
|---|---|
| measure_residency_fn | |
| hardlockup_detector_perf_init | hardlockup_detector_perf_init - Probe whether NMI event is available at all | 
| perf_release | Called when the last reference to the file is gone. | 
| unregister_hw_breakpoint | register_hw_breakpoint - unregister a user-space hardware breakpoint*@bp: the breakpoint structure to unregister | 
| hardlockup_detector_perf_cleanup | hardlockup_detector_perf_cleanup - Cleanup disabled events and destroy them* Called from lockup_detector_cleanup(). Serialized by the caller. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |