Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-28 13:32:44
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 disable a performance event

Proto:static void __perf_event_disable(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
2237  If state < PERF_EVENT_STATE_INACTIVE Then Return
2240  If is_active & EVENT_TIME Then
2241  update_context_time(ctx)
2242  update_cgrp_time_from_event(event)
2245  If event == group_leader Then group_sched_out(event, cpuctx, ctx)
2247  Else event_sched_out(event, cpuctx, ctx)
2250  perf_event_set_state(event, PERF_EVENT_STATE_OFF)