函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This must be done under the ctx->lock, such as to serialize against* context_equiv(), therefore we cannot call put_ctx() since that might end up* calling scheduler related locks and ctx->lock nests inside those.

函数原型:static __must_check struct perf_event_context *unclone_ctx(struct perf_event_context *ctx)

返回类型:struct perf_event_context

参数:

类型参数名称
struct perf_event_context *ctx
1310  parent_ctx等于These fields let us detect when two contexts have both* been cloned (inherited) from a common ancestor.
1312  lockdep_assert_held( & Protect the states of the events in the list,* nr_active, and the list:)
1314  如果parent_ctxThese fields let us detect when two contexts have both* been cloned (inherited) from a common ancestor. = NULL
1316  generation自加
1318  返回:parent_ctx
调用者
名称描述
perf_event_enable_on_execEnable all of a task's events that have been marked enable-on-exec.* This expects task == current.
find_get_contextReturns a matching context with refcount and pincount.
perf_event_exit_task_context