Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:31:52
Last Modify:2022-05-20 07:50:19 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static __must_check struct perf_event_context *unclone_ctx(struct perf_event_context *ctx)

Type:struct perf_event_context

Parameter:

TypeParameterName
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  If parent_ctx Then These fields let us detect when two contexts have both* been cloned (inherited) from a common ancestor. = NULL
1316  generation++
1318  Return parent_ctx
Caller
NameDescribe
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