Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:add_event_to_ctx

Proto:static void add_event_to_ctx(struct perf_event *event, struct perf_event_context *ctx)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
struct perf_event_context *ctx
2493  Add an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held.
2494  perf_group_attach(event)
Caller
NameDescribe
__perf_install_in_contextCross CPU call to install and enable a performance event* Very similar to remote_function() + event_function() but cannot assume that* things like ctx->is_active and cpuctx->task_ctx are set.
perf_install_in_contextAttach a performance event to a context.* Very similar to event_function_call, see comment there.
inherit_eventInherit an event from parent task to child task.* Returns:* - valid pointer on success* - NULL for orphaned events* - IS_ERR() on error