函数逻辑报告 |
Source Code:kernel\events\core.c |
Create Date:2022-07-27 14:52:13 |
| Last Modify:2022-05-20 07:50:19 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Enable an event
函数原型:static void _perf_event_enable(struct perf_event *event)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct perf_event * | event |
| 2830 | 关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & Protect the states of the events in the list,* nr_active, and the list:) |
| 2831 | 如果state大于等于PERF_EVENT_STATE_INACTIVE或state小于PERF_EVENT_STATE_ERROR则 |
| 2833 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
| 2834 | 返回 |
| 2844 | 如果state恒等于PERF_EVENT_STATE_ERROR则state等于PERF_EVENT_STATE_OFF |
| 2846 | raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:) |
| 名称 | 描述 |
|---|---|
| perf_event_enable | See perf_event_disable(); |
| _perf_event_refresh | |
| perf_event_modify_breakpoint |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |