Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Cross CPU call to remove a performance event* We disable the event on the hardware level first. After that we* remove it from the context list.

Proto:static void __perf_remove_from_context(struct perf_event *event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx, void *info)

Type:void

Parameter:

TypeParameterName
struct perf_event *event
struct perf_cpu_context *cpuctx
struct perf_event_context *ctx
void *info
2171  flags = info
2173  If is_active & EVENT_TIME Then
2174  update_context_time(ctx)
2175  update_cgrp_time_from_cpuctx(cpuctx)
2178  event_sched_out(event, cpuctx, ctx)
2179  If flags & DETACH_GROUP Then perf_group_detach(event)
2181  Remove an event from the lists for its context.* Must be called with ctx->mutex and ctx->lock held.
2183  If Not nr_events && is_active Then
2184  is_active = 0
2185  If task Then
2187  task_ctx = NULL
Caller
NameDescribe
__perf_event_exit_context