函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:51:45
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Disable an event

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

返回类型:void

参数:

类型参数名称
struct perf_event *event
2269  ctx等于ctx
2271  关闭本地中断,获取所要保护的运行队列(runqueue)的自旋锁(spinlock),为查找可运行进程做准备。( & Protect the states of the events in the list,* nr_active, and the list:)
2272  如果state小于等于PERF_EVENT_STATE_OFF
2273  raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:)
2274  返回
2276  raw_spin_unlock_irq( & Protect the states of the events in the list,* nr_active, and the list:)
2278  event_function_call(event, Cross CPU call to disable a performance event, NULL)
调用者
名称描述
perf_event_disableStrictly speaking kernel users cannot create groups and therefore this* interface does not need the perf_event_ctx_lock() magic.
perf_event_modify_breakpoint
perf_event_pauseAssume it's not an event with inherit set.