函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:perf_event_ctx_lock

函数原型:static inline struct perf_event_context *perf_event_ctx_lock(struct perf_event *event)

返回类型:struct perf_event_context

参数:

类型参数名称
struct perf_event *event
1292  返回:Because of perf_event::ctx migration in sys_perf_event_open::move_group and* perf_pmu_migrate_context() we need some magic.* Those places that change perf_event::ctx will hold both* perf_event_ctx::mutex of the 'old' and 'new' ctx value.
调用者
名称描述
perf_event_disableStrictly speaking kernel users cannot create groups and therefore this* interface does not need the perf_event_ctx_lock() magic.
perf_event_enableSee perf_event_disable();
perf_event_refreshSee perf_event_disable()
perf_event_release_kernelKill 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.
perf_event_read_value
perf_read
perf_event_pauseAssume it's not an event with inherit set.
perf_event_period
perf_ioctl
perf_event_task_enable
perf_event_task_disable