函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称:Enable an event

函数原型:static void _perf_event_enable(struct perf_event *event)

返回类型:void

参数:

类型参数名称
struct perf_event *event
2828  ctx等于ctx
2830  关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & Protect the states of the events in the list,* nr_active, and the list:)
2831  如果state大于等于PERF_EVENT_STATE_INACTIVEstate小于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_ERRORstate等于PERF_EVENT_STATE_OFF
2846  raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:)
2848  event_function_call(event, Cross CPU call to enable a performance event, NULL)
调用者
名称描述
perf_event_enableSee perf_event_disable();
_perf_event_refresh
perf_event_modify_breakpoint