函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Cross CPU call to disable a performance event

函数原型:static void __perf_event_disable(struct perf_event *event, struct perf_cpu_context *cpuctx, struct perf_event_context *ctx, void *info)

返回类型:void

参数:

类型参数名称
struct perf_event *event
struct perf_cpu_context *cpuctx
struct perf_event_context *ctx
void *info
2237  如果state小于PERF_EVENT_STATE_INACTIVE则返回
2240  如果is_active按位与EVENT_TIME
2241  update_context_time(ctx)
2242  update_cgrp_time_from_event(event)
2245  如果event恒等于group_leadergroup_sched_out(event, cpuctx, ctx)
2247  否则event_sched_out(event, cpuctx, ctx)
2250  perf_event_set_state(event, PERF_EVENT_STATE_OFF)